Skip to content

Use FileCheck directly #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
)

configure_file(TestRunner.sh.in ${CMAKE_CURRENT_BINARY_DIR}/TestRunner.sh)
Expand All @@ -15,7 +15,7 @@ list(APPEND FORT_TEST_DEPS
)

set(FORT_TEST_PARAMS
fort_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
fort_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
)

if( NOT FORT_BUILT_STANDALONE )
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/Intrinsics/bitops.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM bittest

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/Intrinsics/inquiry.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM inquirytest

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/Intrinsics/maxminloc.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM maxminloctest

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/array.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM helloArrays

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/arrayArgument.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

SUBROUTINE SUB(IARR, IARR2, LEN, RARR)
INTEGER IARR(10), IARR2(*)
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/arrayConstructor.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM test ! CHECK: private constant [4 x i32] [i32 1, i32 2, i32 3, i32 4]

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/callableArguments.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

SUBROUTINE SUB(F, G) ! CHECK: void (i32*)* %f, i32 (float*)* %g
EXTERNAL F
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/character.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

SUBROUTINE FOO(STR) ! CHECK: define void @foo_(i8* %str, i32 %str.length)
CHARACTER*(*) STR
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/characterIntrinsic.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
CHARACTER STR
LOGICAL L
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/common.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

program com ! CHECK: @__BLNK__ = common global { i32, i32, float, { float, float } } zeroinitializer, align 16
integer i,j ! CHECK: @dir_ = common global { [20 x i8], i32 } zeroinitializer, align 16
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/complexArithmetic.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
COMPLEX C ! CHECK: alloca { float, float }
DOUBLE COMPLEX DC ! CHECK: alloca { double, double }
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/complexIntrinsic.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM testcomplexintrinsics
COMPLEX c
INTRINSIC aimag, conjg
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/complexIntrinsicMath.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - -O1 %s | %file_check %s
! RUN: %fort -emit-llvm -o - -O1 %s | FileCheck %s
PROGRAM testcomplexintrinsicmath
COMPLEX c
INTRINSIC abs, sqrt, sin, cos, log, exp
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/computedGoto.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM gototest
INTEGER I

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/core.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
STOP ! CHECK: call void @libfort_stop()
END PROGRAM
2 changes: 1 addition & 1 deletion test/CodeGen/data.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM datatest
INTEGER I, J
REAL X
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/defaultDouble8.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -fdefault-real-8 -fdefault-double-8 -emit-llvm -o - %s | %file_check %s
! RUN: %fort -fdefault-real-8 -fdefault-double-8 -emit-llvm -o - %s | FileCheck %s

program test
real x ! CHECK: alloca double
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/defaultInt8.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -fdefault-integer-8 -emit-llvm -o - %s | %file_check %s
! RUN: %fort -fdefault-integer-8 -emit-llvm -o - %s | FileCheck %s

program test
integer i ! CHECK: alloca i64
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/defaultReal8.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -fdefault-real-8 -emit-llvm -o - %s | %file_check %s
! RUN: %fort -fdefault-real-8 -emit-llvm -o - %s | FileCheck %s

program test
real x ! CHECK: alloca double
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/dowhile.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM dowhiletest
INTEGER I

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/equivalence.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM eqtest
INTEGER I, J ! CHECK: alloca i8, i64 4, align
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/goto.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM gototest

1000 CONTINUE ! CHECK: 0:
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/if.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM iftest
INTEGER I
LOGICAL L
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/implicitConversion.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
INTEGER I
REAL X
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/init.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
SUBROUTINE sub()
! CHECK: @sub_r_ = {{.*}} global float
! CHECK: store float 2.500000e+00, float* @sub_r_
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/intrinsicConversion.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM intrinsicconv
INTEGER I
REAL R
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/mainProgram.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test ! CHECK: define i32 @main
CONTINUE ! CHECK: br label
END PROGRAM ! CHECK: ret i32 0
2 changes: 1 addition & 1 deletion test/CodeGen/memory.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort %s -O0 -S -emit-llvm -o - | %file_check %s
! RUN: %fort %s -O0 -S -emit-llvm -o - | FileCheck %s
program p
integer(kind=4), allocatable :: a(10), b(5) ! CHECK: %a = alloca i32*
continue ! CHECK: %b = alloca i32*
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/module.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort %s -S -emit-llvm -o - | %file_check %s
! RUN: %fort %s -S -emit-llvm -o - | FileCheck %s
module mod
integer N ! CHECK: @__mod_MOD_n_ = internal global i32
integer c ! CHECK: @__mod_MOD_c_ = internal global i32
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/save.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

SUBROUTINE SUB() ! CHECK: @sub_i_ = {{.*}} global i32
INTEGER I ! CHECK: @sub_r_ = {{.*}} global float
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/scalarArithmetic.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
INTEGER X ! CHECK: alloca i32
REAL Y ! CHECK: alloca float
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/scalarIntrinsicMath.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM testscalarmath
INTEGER i
REAL x
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/scalarIntrinsicTruncRound.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM testscalartruncround
INTEGER i
REAL x
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/scalarLogical.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
LOGICAL L ! CHECK: alloca i32
INTEGER I
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/selectcase.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
INTEGER I, J
CHARACTER (Len = 10) STR, NAME
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/statementFunctions.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
X(I) = I + 1
COMPLEX A
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/subprogram.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

SUBROUTINE SUB ! CHECK: define void @sub_()
END ! CHECK: ret void
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/systemIntrinsics.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

PROGRAM sys ! CHECK: call void @libfort_sys_init()

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/type.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s

program typeTest

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/use.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort %s -S -emit-llvm -o - | %file_check %s
! RUN: %fort %s -S -emit-llvm -o - | FileCheck %s
module m
integer n ! CHECK: @__m_MOD_n_ = internal global i32
contains
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/valueAssignment.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -emit-llvm -o - %s | %file_check %s
! RUN: %fort -emit-llvm -o - %s | FileCheck %s
PROGRAM test
INTEGER X
REAL Y
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/x86LinuxAggregateABI.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -triple "i686-unknown-linux" -emit-llvm -o - %s | %file_check %s
! RUN: %fort -triple "i686-unknown-linux" -emit-llvm -o - %s | FileCheck %s

complex function foo() ! CHECK: define void @foo_({ float, float }*
foo = (1.0, 2.0)
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/x86_64LinuxAggregateABI.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: %fort -triple "x86_64-unknown-linux" -emit-llvm -o - %s | %file_check %s
! RUN: %fort -triple "x86_64-unknown-linux" -emit-llvm -o - %s | FileCheck %s

complex function foo() ! CHECK: define <2 x float> @foo_()
foo = (1.0, 2.0)
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/args.f95
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! RUN: not %fort -flong-nonexistent-command-line-arg %s 2>&1 | %file_check %s -check-prefix=NON-EXISTENT
! RUN: not %fort -flong-nonexistent-command-line-arg %s 2>&1 | FileCheck %s -check-prefix=NON-EXISTENT

! NON-EXISTENT: unknown argument: '-flong-nonexistent-command-line-arg'

24 changes: 12 additions & 12 deletions test/Driver/lineLength.f95
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
! RUN: not %fort -fsyntax-only -ffree-line-length-garbage %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-1parrot %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-garbage %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1parrot %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-garbage %s 2>&1 | FileCheck %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-1parrot %s 2>&1 | FileCheck %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-garbage %s 2>&1 | FileCheck %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1parrot %s 2>&1 | FileCheck %s -check-prefix=VALUE

! RUN: not %fort -fsyntax-only -ffixed-line-length-garbage %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1parrot %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-garbage %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-1parrot %s 2>&1 | %file_check %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-garbage %s 2>&1 | FileCheck %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1parrot %s 2>&1 | FileCheck %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-garbage %s 2>&1 | FileCheck %s -check-prefix=VALUE
! RUN: not %fort -fsyntax-only -ffree-line-length-1parrot %s 2>&1 | FileCheck %s -check-prefix=VALUE

! RUN: not %fort -fsyntax-only -ffree-line-length-1000000000000000000000000 %s 2>&1 | %file_check %s -check-prefix=SIZE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1000000000000000000000000 %s 2>&1 | %file_check %s -check-prefix=SIZE
! RUN: not %fort -fsyntax-only -ffree-line-length-1000000000000000000000000 %s 2>&1 | FileCheck %s -check-prefix=SIZE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1000000000000000000000000 %s 2>&1 | FileCheck %s -check-prefix=SIZE

! RUN: not %fort -fsyntax-only -ffixed-line-length-1000000000000000000000000 %s 2>&1 | %file_check %s -check-prefix=SIZE
! RUN: not %fort -fsyntax-only -ffree-line-length-1000000000000000000000000 %s 2>&1 | %file_check %s -check-prefix=SIZE
! RUN: not %fort -fsyntax-only -ffixed-line-length-1000000000000000000000000 %s 2>&1 | FileCheck %s -check-prefix=SIZE
! RUN: not %fort -fsyntax-only -ffree-line-length-1000000000000000000000000 %s 2>&1 | FileCheck %s -check-prefix=SIZE

! VALUE: invalid value
! SIZE: value '1000000000000000000000000' is too big
Expand Down
2 changes: 1 addition & 1 deletion test/Lexer/fixedForm2.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* RUN: %fort -fsyntax-only %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck %s
* an extract from chemm.f
SUBROUTINE FOO(M, N, ALPHA, BETA)
REAL M, N, ALPHA, BETA
Expand Down
2 changes: 1 addition & 1 deletion test/Lexer/fixedFormSquash.f
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROGRAMfoo
C RUN: %fort -fsyntax-only %s
C RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check %s
C RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck %s
INTEGERI,DOI,IDO
C next line is a DO statement, not DOI =
C CHECK: do i = 1, 10
Expand Down
2 changes: 1 addition & 1 deletion test/Lexer/fixedFormString.f
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROGRAM text
C RUN: %fort -fsyntax-only %s
C RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check --strict-whitespace %s
C RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck --strict-whitespace %s
CHARACTER *256 MESS(09)
DATA MESS(01)/
.' He llo
Expand Down
2 changes: 1 addition & 1 deletion test/Lexer/numberConstants.f95
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
! RUN: %fort -fsyntax-only -verify < %s
! RUN: %fort -fsyntax-only -verify -ast-print %s 2>&1 | %file_check %s
! RUN: %fort -fsyntax-only -verify -ast-print %s 2>&1 | FileCheck %s
PROGRAM constants
REAL X
DOUBLE PRECISION Y
Expand Down
2 changes: 1 addition & 1 deletion test/Parser/end.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* RUN: %fort -fsyntax-only %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck %s

PROGRAM D
* CHECK: endd = 0
Expand Down
2 changes: 1 addition & 1 deletion test/Parser/expressions.f95
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
! RUN: %fort -fsyntax-only -verify < %s
! RUN: %fort -fsyntax-only -verify -ast-print %s 2>&1 | %file_check %s
! RUN: %fort -fsyntax-only -verify -ast-print %s 2>&1 | FileCheck %s
PROGRAM expressions
REAL x,y,z,w
LOGICAL l
Expand Down
2 changes: 1 addition & 1 deletion test/Parser/fixedFormDo.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
C RUN: %fort -fsyntax-only %s
C RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check %s
C RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck %s
PROGRAM test
INTEGERNE,DOI(10),DONE,DOWHILE,DOWHILEI,WHILEI
DOI=1,10
Expand Down
2 changes: 1 addition & 1 deletion test/Parser/fixedFormFunction.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* RUN: %fort -fsyntax-only %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck %s
LOGICALFUNCTIONFOO()
* CHECK: foo = false
FOO = .false.
Expand Down
4 changes: 2 additions & 2 deletions test/Parser/fixedFormLength.f
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
* RUN: %fort -fsyntax-only -ffixed-line-length-90 %s
* RUN: %fort -fsyntax-only -ffixed-line-length-0 %s
* RUN: %fort -fsyntax-only -ffixed-line-length-none %s
* RUN: not %fort -fsyntax-only -ffixed-line-length-50 %s 2>&1 | %file_check %s -check-prefix=LINE-LENGTH
* RUN: not %fort -fsyntax-only %s 2>&1 | %file_check %s -check-prefix=LINE-LENGTH
* RUN: not %fort -fsyntax-only -ffixed-line-length-50 %s 2>&1 | FileCheck %s -check-prefix=LINE-LENGTH
* RUN: not %fort -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=LINE-LENGTH

PROGRAM test
CHARACTER *72 STR
Expand Down
2 changes: 1 addition & 1 deletion test/Parser/fixedif.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* RUN: %fort -fsyntax-only %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | %file_check %s
* RUN: %fort -fsyntax-only -ast-print %s 2>&1 | FileCheck %s
PROGRAM iftest
* an implicit integer declaration.
* CHECK: ifatal = 0
Expand Down
4 changes: 2 additions & 2 deletions test/Parser/freeFormLength.f95
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
! RUN: %fort -fsyntax-only -ffree-line-length-0 %s
! RUN: %fort -fsyntax-only -ffree-line-length-none %s

! RUN: not %fort -fsyntax-only -ffree-line-length-100 %s 2>&1 | %file_check %s -check-prefix=LINE-LENGTH
! RUN: not %fort -fsyntax-only %s 2>&1 | %file_check %s -check-prefix=LINE-LENGTH
! RUN: not %fort -fsyntax-only -ffree-line-length-100 %s 2>&1 | FileCheck %s -check-prefix=LINE-LENGTH
! RUN: not %fort -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=LINE-LENGTH

program test
character(len=126) :: str
Expand Down
Loading