• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1! RUN: %f18 -E %s 2>&1 | FileCheck %s
2! CHECK: res = ((111)+666)
3! FLM expansion of argument
4      integer function IFLM(x)
5        integer :: x
6        IFLM = x
7      end function IFLM
8      program main
9      integer, parameter :: KWM = 999
10#define KWM 111
11#define IFLM(x) ((x)+666)
12      integer :: res
13      res = IFLM(KWM)
14      if (res .eq. 777) then
15        print *, 'pp120.F90 yes'
16      else
17        print *, 'pp120.F90 no: ', res
18      end if
19      end
20