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.
20 lines
463 B
20 lines
463 B
! RUN: %f18 -E %s 2>&1 | FileCheck %s
|
|
! CHECK: res = ((111)+666)
|
|
! FLM expansion of argument
|
|
integer function IFLM(x)
|
|
integer :: x
|
|
IFLM = x
|
|
end function IFLM
|
|
program main
|
|
integer, parameter :: KWM = 999
|
|
#define KWM 111
|
|
#define IFLM(x) ((x)+666)
|
|
integer :: res
|
|
res = IFLM(KWM)
|
|
if (res .eq. 777) then
|
|
print *, 'pp120.F90 yes'
|
|
else
|
|
print *, 'pp120.F90 no: ', res
|
|
end if
|
|
end
|