Skip to content

Commit

Permalink
[flang][driver] Update PP tests to use the new driver
Browse files Browse the repository at this point in the history
Update the preprocessor regression tests to use the new driver if the new driver is built (FLANG_BUILD_NEW_DRIVER=On), otherwise the tests will still run using f18.

Summary of changes:
- Introduce %flang to the regression tests, which points to the new driver if it is built or otherwise points to f18
- Update all tests in flang/test/Preprocessing/ to use %flang

Differential Revision: https://reviews.llvm.org/D94805
  • Loading branch information
Faris Rehman committed Jan 25, 2021
1 parent 171d124 commit 1c8f199
Show file tree
Hide file tree
Showing 81 changed files with 85 additions and 80 deletions.
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/assert.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!RUN: %f18 -E %s 2>&1 | FileCheck %s
!RUN: %flang -E %s 2>&1 | FileCheck %s
!CHECK: if(.not.(.true.)) error stop "assert(" // ".TRUE." // ") failed " // "at ""
!CHECK-SAME: assert.F90"": " // "7"
#define STR(x) #x
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/compiler_defined_macros.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
!CHECK: flang_major = {{[1-9][0-9]*$}}
!CHECK: flang_minor = {{[0-9]+$}}
!CHECK: flang_patchlevel = {{[0-9]+$}}
!RUN: %f18 -E %s | FileCheck --ignore-case %s
!RUN: %flang -E %s | FileCheck --ignore-case %s


integer, parameter :: flang_major = __flang_major__
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/defines.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E -DFOO=1 -DBAR=2 %s | FileCheck %s
! RUN: %flang -E -DFOO=1 -DBAR=2 %s | FileCheck %s

! CHECK: integer :: a = 1
integer :: a = FOO
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/fixed-rescan.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s | FileCheck %s
! RUN: %flang -E %s | FileCheck %s
! CHECK: callbar
! Ensure that rescanned lines after macro replacement are not
! misinterpreted as fixed-form comments when they start with C or D.
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/hollerith.f
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: character*1hi
! CHECK: dataa/1*1h /
! CHECK: datab/1*1h /
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/include-comment.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -I%S -E %s 2>&1 | FileCheck %s
! RUN: %flang -I%S -E %s 2>&1 | FileCheck %s
! CHECK-NOT: :3:
#include <empty.h> ! comment
! CHECK-NOT: :5:
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp001.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
* keyword macros
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp002.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(kwm.eq.777)then
* #undef
integer, parameter :: KWM = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp003.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* function-like macros
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp004.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(kwm.eq.777)then
* KWMs case-sensitive
integer, parameter :: KWM = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp005.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=777
* KWM split across continuation, implicit padding
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp006.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=777
* ditto, but with intervening *comment line
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp007.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=kwm
* KWM split across continuation, clipped after column 72
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp008.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=kwm
* KWM with spaces in name at invocation NOT replaced
integer, parameter :: KWM = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp009.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call split across continuation, implicit padding
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp010.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* ditto, but with intervening *comment line
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp011.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=iflm(666)
* FLM call name split across continuation, clipped
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp012.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call name split across continuation
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp013.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call split between name and (
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp014.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call split between name and (, with intervening *comment
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp015.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call split between name and (, clipped
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp016.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call split between name and ( and in argument
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp017.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
* KLM rescan
integer, parameter :: KWM = 666, KWM2 = 667
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp018.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(kwm2.eq.777)then
* KLM rescan with #undef (so rescan is after expansion)
integer, parameter :: KWM2 = 777, KWM = 667
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp019.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM rescan
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp020.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((111)+666)
* FLM expansion of argument
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp021.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: ch='KWM'
! CHECK: if(ch.eq.'KWM')then
* KWM NOT expanded in 'literal'
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp022.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: ch="KWM"
! CHECK: if(ch.eq.'KWM')then
* KWM NOT expanded in "literal"
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp023.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: ch=3hKWM
! CHECK: if(ch.eq.'KWM')then
* KWM NOT expanded in 9HHOLLERITH literal
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp024.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: 100format(3hKWM)
! CHECK: if(ch.eq.'KWM')then
* KWM NOT expanded in Hollerith in FORMAT
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp025.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=ikwm2z
* KWM expansion is before token pasting due to fixed-form space removal
integer, parameter :: IKWM2Z = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp026.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((111)+666)
* ## token pasting works in FLM
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp027.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: kwm=666
! CHECK: if(777.eq.777)then
* #DEFINE works in fixed form
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp028.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=kw
* fixed-form clipping done before KWM expansion on source line
integer, parameter :: KW = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp029.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
* \ newline allowed in #define
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp030.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
* /* C comment */ erased from #define
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp031.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777//ccomment.eq.777)then
! CHECK: print*,'pp031.F no: ',777//ccomment
* // C++ comment NOT erased from #define
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp032.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
! CHECK: print*,'pp032.F no: ',777
* /* C comment */ \ newline erased from #define
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp033.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
! CHECK: print*,'pp033.F no: ',777
* /* C comment \ newline */ erased from #define
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp034.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
! CHECK: print*,'pp034.F no: ',777
* \ newline allowed in name on KWM definition
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp035.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
! CHECK: print*,'pp035.F no: ',777
* #if 2 .LT. 3 works
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp036.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(.true.)then
! CHECK: print*,'pp036.F no: ',.true.
* #define FALSE TRUE ... .FALSE. -> .TRUE.
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp037.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(7777.eq.777)then
! CHECK: print*,'pp037.F no: ',7777
* fixed-form clipping NOT applied to #define
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp038.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=((666)+111)
* FLM call with closing ')' on next line (not a continuation)
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp039.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res=iflm
! CHECK: (666)
! CHECK-NOT: res=((666)+111)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp040.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK-NOT: FAIL HARD!
* #define KWM c, then KWM works as comment line initiator
#define KWM c
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp041.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: j=666wmj=j+1wm211
* use KWM expansion as continuation indicators
#define KWM 0
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp042.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK-NOT: goto 2
* #define c 1, then use c as label in fixed-form
#define c 1
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp043.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(kwm.eq.777)then
* #define with # in column 6 is a continuation line in fixed-form
integer, parameter :: defineKWM666 = 555
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp044.F
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK-NOT:z=111
* #define directive amid continuations
integer, parameter :: KWM = 222, KWM111 = 333, KWM222 = 555
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp101.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(777 .eq. 777) then
! keyword macros
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp102.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(kwm .eq. 777) then
! #undef
integer, parameter :: KWM = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp103.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = ((666)+111)
! function-like macros
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp104.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if(kwm .eq. 777) then
! KWMs case-sensitive
integer, parameter :: KWM = 777
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp105.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = 777
! KWM call name split across continuation, with leading &
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp106.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = 777
! ditto, with & ! comment
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp107.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = kwm
! KWM call name split across continuation, no leading &, with & ! comment
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp108.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = kwm
! ditto, but without & ! comment
integer, parameter :: KWM = 666
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp109.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = ((666)+111)
! FLM call name split with leading &
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp110.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = ((666)+111)
! ditto, with & ! comment
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp111.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = iflm (666)
! FLM call name split across continuation, no leading &, with & ! comment
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp112.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = iflm (666)
! ditto, but without & ! comment
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp113.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = ((666)+111)
! FLM call split across continuation between name and (, leading &
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp114.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = ((666)+111)
! ditto, with & ! comment, leading &
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp115.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = iflm (666)
! ditto, with & ! comment, no leading &
integer function IFLM(x)
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Preprocessing/pp116.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %f18 -E %s 2>&1 | FileCheck %s
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: res = iflm (666)
! FLM call split between name and (, no leading &
integer function IFLM(x)
Expand Down
Loading

0 comments on commit 1c8f199

Please sign in to comment.