! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = ((111)+666)
* ## token pasting works in FLM
      integer function IFLM(x)
        integer :: x
        IFLM = x
      end function IFLM
      program main
      integer, parameter :: KWM = 668, KWM21 = 111, KWM1 = 669
#define KWM1 111
#define KWM2 33
#define KWM KWM2
#define IFLM(x) ((x##1)+6##6##6)
      integer :: res
      res = IFLM(KWM)
      if (res .eq. 777) then
        print *, 'pp026.F yes'
      else
        print *, 'pp026.F no: ', res
      end if
      end
