llvm-project/flang/test/Preprocessing/pp020.F

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
457 B
FortranFixed
Raw Normal View History

! 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 *, 'pp020.F yes'
else
print *, 'pp020.F no: ', res
end if
end