Skip to content

Commit 6c1ac14

Browse files
author
Ivan Zhechev
committed
[Flang] Ported test_errors.sh to Python
To enable Flang testing on Windows, shell scripts have to be ported to Python. In this patch the "test_errors.sh" script is ported to python ("test_errors.py"). The RUN line of existing tests was changed to make use of the python script. Used python regex in place of awk/sed. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D107575
1 parent e158363 commit 6c1ac14

File tree

392 files changed

+465
-819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

392 files changed

+465
-819
lines changed

flang/test/Semantics/OpenACC/acc-atomic-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.12 Atomic

flang/test/Semantics/OpenACC/acc-branch.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC restruction in branch in and out of some construct
54
!

flang/test/Semantics/OpenACC/acc-cache-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.10 Cache

flang/test/Semantics/OpenACC/acc-canonicalization-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC canonalization validity for the construct defined below:
54
! 2.9 Loop

flang/test/Semantics/OpenACC/acc-data.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.6.5 Data

flang/test/Semantics/OpenACC/acc-declare-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.13 Declare

flang/test/Semantics/OpenACC/acc-host-data.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.8 host_data

flang/test/Semantics/OpenACC/acc-init-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.14.1 Init

flang/test/Semantics/OpenACC/acc-kernels-loop.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.11 Kernels Loop

flang/test/Semantics/OpenACC/acc-kernels.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.5.3 Kernels

flang/test/Semantics/OpenACC/acc-loop.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.9 Loop

flang/test/Semantics/OpenACC/acc-parallel-loop-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.11 Parallel Loop

flang/test/Semantics/OpenACC/acc-parallel.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.5.1 Parallel

flang/test/Semantics/OpenACC/acc-resolve01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Data-Mapping Attribute Clauses
54
! 2.15.14 default Clause

flang/test/Semantics/OpenACC/acc-resolve02.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
subroutine compute()
54
integer :: a(3), c, i

flang/test/Semantics/OpenACC/acc-routine-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.15.1 routine

flang/test/Semantics/OpenACC/acc-serial-loop.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.11 Serial Loop

flang/test/Semantics/OpenACC/acc-serial.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.5.2 Serial

flang/test/Semantics/OpenACC/acc-set-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.14.3 Set

flang/test/Semantics/OpenACC/acc-shutdown-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.14.2 Shutdown

flang/test/Semantics/OpenACC/acc-update-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.14.4 Update

flang/test/Semantics/OpenACC/acc-wait-validity.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
2-
! REQUIRES: shell
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
32

43
! Check OpenACC clause validity for the following construct and directive:
54
! 2.16.13 Wait

flang/test/Semantics/allocate01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
! Creating a symbol that allocate should accept

flang/test/Semantics/allocate02.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32

43
! Check for semantic errors in ALLOCATE statements
54

flang/test/Semantics/allocate03.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
subroutine C933_a(b1, ca3, ca4, cp3, cp3mold, cp4, cp7, cp8, bsrc)

flang/test/Semantics/allocate04.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54

flang/test/Semantics/allocate05.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54

flang/test/Semantics/allocate06.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54

flang/test/Semantics/allocate07.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
subroutine C936(param_ca_4_assumed, param_ta_4_assumed, param_ca_4_deferred)

flang/test/Semantics/allocate08.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
subroutine C945_a(srca, srcb, srcc, src_complex, src_logical, &

flang/test/Semantics/allocate09.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
subroutine C946(param_ca_4_assumed, param_ta_4_assumed, param_ca_4_deferred)

flang/test/Semantics/allocate10.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
!TODO: mixing expr and source-expr?

flang/test/Semantics/allocate11.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
! TODO: Function Pointer in allocate and derived types!

flang/test/Semantics/allocate12.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
subroutine C941_C942b_C950(xsrc, x1, a2, b2, cx1, ca2, cb1, cb2, c1, c2)

flang/test/Semantics/allocate13.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for semantic errors in ALLOCATE statements
43

54
module not_iso_fortran_env

flang/test/Semantics/altreturn01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check calls with alt returns
43

54
CALL TEST (N, *100, *200 )

flang/test/Semantics/altreturn02.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check subroutine with alt return
43

54
SUBROUTINE TEST (N, *, *)

flang/test/Semantics/altreturn03.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for various alt return error conditions
43

54
SUBROUTINE TEST (N, *, *)

flang/test/Semantics/altreturn04.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Functions cannot use alt return
43

54
REAL FUNCTION altreturn01(X)

flang/test/Semantics/altreturn05.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Test extension: RETURN from main program
43

54
return !ok

flang/test/Semantics/altreturn06.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Test alternat return argument passing for internal and external subprograms
43
! Both of the following are OK
54
call extSubprogram (*100)

flang/test/Semantics/array-constr-big.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Ensure that evaluating a very large array constructor does not crash the
43
! compiler
54
program BigArray

flang/test/Semantics/array-constr-values.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Confirm enforcement of constraints and restrictions in 7.8
43
! C7110, C7111, C7112, C7113, C7114, C7115
54

flang/test/Semantics/assign01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! 10.2.3.1(2) All masks and LHS of assignments in a WHERE must conform
43

54
subroutine s1

flang/test/Semantics/assign02.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Pointer assignment constraints 10.2.2.2
43

54
module m1

flang/test/Semantics/assign03.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Pointer assignment constraints 10.2.2.2 (see also assign02.f90)
43

54
module m

flang/test/Semantics/assign04.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! 9.4.5
43
subroutine s1
54
type :: t(k, l)

flang/test/Semantics/assign06.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Test ASSIGN statement, assigned GOTO, and assigned format labels
43
! (see subclause 8.2.4 in Fortran 90 (*not* 2018!)
54

flang/test/Semantics/assign07.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Test ASSIGN statement, assigned GOTO, and assigned format labels
43
! (see subclause 8.2.4 in Fortran 90 (*not* 2018!)
54

flang/test/Semantics/associated.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Tests for the ASSOCIATED() and NULL() intrinsics
43
subroutine assoc()
54

flang/test/Semantics/bad-forward-type.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Forward references to derived types (error cases)
43
! C732 A parent-type-name shall be the name of a previously defined
54
! extensible type (7.5.7).

flang/test/Semantics/bind-c01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Check for multiple symbols being defined with with same BIND(C) name
43

54
module m1

flang/test/Semantics/bindings01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Confirm enforcement of constraints and restrictions in 7.5.7.3
43
! and C733, C734 and C779, C780, C782, C783, C784, and C785.
54

flang/test/Semantics/block-data01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Test BLOCK DATA subprogram (14.3)
43
block data foo
54
!ERROR: IMPORT is not allowed in a BLOCK DATA subprogram

flang/test/Semantics/blockconstruct01.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! C1107 -- COMMON, EQUIVALENCE, INTENT, NAMELIST, OPTIONAL, VALUE or
43
! STATEMENT FUNCTIONS not allow in specification part
54

flang/test/Semantics/blockconstruct02.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! C1108 -- Save statement in a BLOCK construct shall not conatin a
43
! saved-entity-list that does not specify a common-block-name
54

flang/test/Semantics/blockconstruct03.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
! RUN: %S/test_errors.sh %s %t %flang_fc1
2-
! REQUIRES: shell
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
32
! Tests implemented for this standard:
43
! Block Construct
54
! C1109

0 commit comments

Comments
 (0)