Files
clang-p2996/flang/test/Preprocessing/pp130.F90
Peter Klausler f706411f71 [flang][preprocessor] Handle compiler directives with continuations a… (#70128)
…fter macro expansion

When compiler directives (!$omp) and/or their continuations (!$omp &)
are produced by macro expansion, handle those continuations. Also allow
a continuation marker (&) to appear in a macro actual argument.
2023-10-31 11:38:25 -07:00

15 lines
351 B
Fortran

! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: j = j + 111
! #define KWM &, use for continuation w/o pasting (ifort and nag seem to continue #define)
#define KWM &
integer :: j
j = 666
j = j + KWM
111
if (j .eq. 777) then
print *, 'pp130.F90 yes'
else
print *, 'pp130.F90 no', j
end if
end