brintos

brintos / llvm-project-archived public Read only

0
0
Text · 402 B · 56df983 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 *, 'pp003.F yes'14      else15        print *, 'pp003.F no: ', res16      end if17      end18