2021-06-10 18:06:56 +08:00
|
|
|
! RUN: not %flang -E %s 2>&1 | FileCheck %s
|
2020-08-26 00:38:41 +08:00
|
|
|
! CHECK: error: bad character ('&') in Fortran token
|
2019-10-05 06:21:31 +08:00
|
|
|
! #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
|
2020-08-04 01:50:42 +08:00
|
|
|
print *, 'pp130.F90 yes'
|
2019-10-05 06:21:31 +08:00
|
|
|
else
|
2020-08-04 01:50:42 +08:00
|
|
|
print *, 'pp130.F90 no', j
|
2019-10-05 06:21:31 +08:00
|
|
|
end if
|
|
|
|
end
|