mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 13:26:22 +00:00

And fix a minor bug exposed by doing so. Differential Revision: https://reviews.llvm.org/D85164
22 lines
527 B
Fortran
22 lines
527 B
Fortran
! 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
|