repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[flang][openacc] Use OpenACC terminator instead of fir.unreachable after Stop stmt...
[llvm-project.git]
/
flang
/
test
/
Preprocessing
/
pp003.F
blob
56df98309f43eac3db22b323cd83968ae1a4e4a1
1
! RUN: %flang -E %s 2>&1 | FileCheck %s
2
! CHECK: res = ((666)+111)
3
* function-like macros
4
integer function IFLM(x)
5
integer :: x
6
IFLM = x
7
end function IFLM
8
program main
9
#define IFLM(x) ((x)+111)
10
integer :: res
11
res = IFLM(666)
12
if (res .eq. 777) then
13
print *, 'pp003.F yes'
14
else
15
print *, 'pp003.F no: ', res
16
end if
17
end