brintos

brintos / llvm-project-archived public Read only

0
0
Text · 406 B · 0384d8c Raw
18 lines · plain
1! RUN: %flang -E %s 2>&1 | FileCheck %s2! CHECK: res = ((666)+111)3! function-like macros4      integer function IFLM(x)5        integer :: x6        IFLM = x7      end function IFLM8      program main9#define IFLM(x) ((x)+111)10      integer :: res11      res = IFLM(666)12      if (res .eq. 777) then13        print *, 'pp103.F90 yes'14      else15        print *, 'pp103.F90 no: ', res16      end if17      end18