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
16 lines
338 B
Fortran
16 lines
338 B
Fortran
* function-like macros
|
|
integer function IFLM(x)
|
|
integer :: x
|
|
IFLM = x
|
|
end function IFLM
|
|
program main
|
|
#define IFLM(x) ((x)+111)
|
|
integer :: res
|
|
res = IFLM(666)
|
|
if (res .eq. 777) then
|
|
print *, 'pp003.F pass'
|
|
else
|
|
print *, 'pp003.F FAIL: ', res
|
|
end if
|
|
end
|