Files
clang-p2996/flang/test/Preprocessing/pp026.F
CarolineConcatto 64ab3302d5 [flang] [LLVMify F18] Compiler module folders should have capitalised names (flang-compiler/f18#980)
This patch renames the modules in f18 to use a capital letter in the
module name

Signed-off-by: Caroline Concatto <caroline.concatto@arm.com>

Original-commit: flang-compiler/f18@d2eb7a1c44
Reviewed-on: https://github.com/flang-compiler/f18/pull/980
2020-02-25 07:11:52 -08:00

20 lines
467 B
Fortran

* ## 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 pass'
else
print *, 'pp026.F FAIL: ', res
end if
end