You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
527 B
22 lines
527 B
! RUN: %f18 -E %s 2>&1 | FileCheck %s
|
|
! CHECK: res=((111)+666)
|
|
* ## token pasting works in FLM
|
|
integer function IFLM(x)
|
|
integer :: x
|
|
IFLM = x
|
|
end function IFLM
|
|
program main
|
|
integer, parameter :: KWM = 668, KWM21 = 111, KWM1 = 669
|
|
#define KWM1 111
|
|
#define KWM2 33
|
|
#define KWM KWM2
|
|
#define IFLM(x) ((x##1)+6##6##6)
|
|
integer :: res
|
|
res = IFLM(KWM)
|
|
if (res .eq. 777) then
|
|
print *, 'pp026.F yes'
|
|
else
|
|
print *, 'pp026.F no: ', res
|
|
end if
|
|
end
|