[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
This commit is contained in:
Ivan Zhechev 2021-09-06 08:19:20 +00:00
parent e15836361c
commit 6c1ac141d3
392 changed files with 465 additions and 819 deletions

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.12 Atomic

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC restruction in branch in and out of some construct
!

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.10 Cache

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC canonalization validity for the construct defined below:
! 2.9 Loop

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.6.5 Data

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.13 Declare

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.8 host_data

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.14.1 Init

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.11 Kernels Loop

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.5.3 Kernels

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.9 Loop

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.11 Parallel Loop

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.5.1 Parallel

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Data-Mapping Attribute Clauses
! 2.15.14 default Clause

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
subroutine compute()
integer :: a(3), c, i

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.15.1 routine

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.11 Serial Loop

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.5.2 Serial

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.14.3 Set

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.14.2 Shutdown

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.14.4 Update

View File

@ -1,5 +1,4 @@
! RUN: %S/../test_errors.sh %s %t %flang -fopenacc
! REQUIRES: shell
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
! Check OpenACC clause validity for the following construct and directive:
! 2.16.13 Wait

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
! Creating a symbol that allocate should accept

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
subroutine C933_a(b1, ca3, ca4, cp3, cp3mold, cp4, cp7, cp8, bsrc)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
subroutine C936(param_ca_4_assumed, param_ta_4_assumed, param_ca_4_deferred)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
subroutine C945_a(srca, srcb, srcc, src_complex, src_logical, &

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
subroutine C946(param_ca_4_assumed, param_ta_4_assumed, param_ca_4_deferred)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
!TODO: mixing expr and source-expr?

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
! TODO: Function Pointer in allocate and derived types!

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
subroutine C941_C942b_C950(xsrc, x1, a2, b2, cx1, ca2, cb1, cb2, c1, c2)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in ALLOCATE statements
module not_iso_fortran_env

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check calls with alt returns
CALL TEST (N, *100, *200 )

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check subroutine with alt return
SUBROUTINE TEST (N, *, *)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for various alt return error conditions
SUBROUTINE TEST (N, *, *)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Functions cannot use alt return
REAL FUNCTION altreturn01(X)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test extension: RETURN from main program
return !ok

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test alternat return argument passing for internal and external subprograms
! Both of the following are OK
call extSubprogram (*100)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Ensure that evaluating a very large array constructor does not crash the
! compiler
program BigArray

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Confirm enforcement of constraints and restrictions in 7.8
! C7110, C7111, C7112, C7113, C7114, C7115

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! 10.2.3.1(2) All masks and LHS of assignments in a WHERE must conform
subroutine s1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Pointer assignment constraints 10.2.2.2
module m1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Pointer assignment constraints 10.2.2.2 (see also assign02.f90)
module m

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! 9.4.5
subroutine s1
type :: t(k, l)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test ASSIGN statement, assigned GOTO, and assigned format labels
! (see subclause 8.2.4 in Fortran 90 (*not* 2018!)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test ASSIGN statement, assigned GOTO, and assigned format labels
! (see subclause 8.2.4 in Fortran 90 (*not* 2018!)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Tests for the ASSOCIATED() and NULL() intrinsics
subroutine assoc()

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Forward references to derived types (error cases)
! C732 A parent-type-name shall be the name of a previously defined
! extensible type (7.5.7).

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for multiple symbols being defined with with same BIND(C) name
module m1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Confirm enforcement of constraints and restrictions in 7.5.7.3
! and C733, C734 and C779, C780, C782, C783, C784, and C785.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test BLOCK DATA subprogram (14.3)
block data foo
!ERROR: IMPORT is not allowed in a BLOCK DATA subprogram

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! C1107 -- COMMON, EQUIVALENCE, INTENT, NAMELIST, OPTIONAL, VALUE or
! STATEMENT FUNCTIONS not allow in specification part

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! C1108 -- Save statement in a BLOCK construct shall not conatin a
! saved-entity-list that does not specify a common-block-name

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Tests implemented for this standard:
! Block Construct
! C1109

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Confirm enforcement of constraints and restrictions in 7.7
! C7107, C7108, C7109

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Enforce 18.2.3.3
program test

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Confirm enforcement of constraints and restrictions in 15.6.2.1
non_recursive function f01(n) result(res)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! 15.5.1 procedure reference constraints and restrictions
subroutine s01(elem, subr)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.5.2.4 constraints and restrictions for non-POINTER non-ALLOCATABLE
! dummy arguments.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 8.5.10 & 8.5.18 constraints on dummy argument declarations
module m

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.5.2.5 constraints and restrictions for POINTER & ALLOCATABLE
! arguments when both sides of the call have the same attributes.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.5.2.6 constraints and restrictions for ALLOCATABLE
! dummy arguments.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.5.2.7 constraints and restrictions for POINTER dummy arguments.
module m

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.5.2.8 coarray dummy arguments
module m

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.5.2.9(2,3,5) dummy procedure requirements
! C843
! An entity with the INTENT attribute shall be a dummy data object or a

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.7 (C1583-C1590, C1592-C1599) constraints and restrictions
! for pure procedures.
! (C1591 is tested in call11.f90; C1594 in call12.f90.)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.7 C1591 & others: contexts requiring pure subprograms
module m

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.7 C1594 - prohibited assignments in pure subprograms
module used

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 15.4.2.2 constraints and restrictions for calls to implicit
! interfaces

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test 8.5.18 constraints on the VALUE attribute
module m

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! C711 An assumed-type actual argument that corresponds to an assumed-rank
! dummy argument shall be assumed-shape or assumed-rank.
subroutine s(arg1, arg2, arg3)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test that intrinsic functions used as subroutines and vice versa are caught.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Ensure that references to functions that return pointers can serve as
! "variables" in actual arguments. All of these uses are conforming and
! no errors should be reported.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Ensures that things that aren't procedures aren't allowed to be called.
module m
integer :: i

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test that the interface of specific intrinsics passed as dummy arguments
! are correctly validated against actual arguments explicit interface.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test SELECT CASE Constraints: C1145, C1146, C1147, C1148, C1149
program selectCaseProg
implicit none

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test selector and team-value in CHANGE TEAM statement
! OK

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! C718 Each named constant in a complex literal constant shall be of type
! integer or real.
subroutine s()

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check that a basic computed goto compiles
INTEGER, DIMENSION (2) :: B

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check that computed goto express must be a scalar integer expression
! TODO: PGI, for example, accepts a float & converts the value to int.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
!C1117
subroutine test1(a, i)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
!C1118
subroutine test1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
!C1119
subroutine test1(a, i)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
!Test for checking data constraints, C882-C887
module m1
type person

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check that expressions are analyzed in data statements
subroutine s1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
!Testing data constraints : C874 - C875, C878 - C881
module m
integer, target :: modarray(1)

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
!Testing data constraints : C876, C877
module m
integer :: first

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! DATA statement errors
subroutine s1
type :: t1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
module m
contains
subroutine s1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
type :: t
integer :: n
end type

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
type :: t1
sequence
integer :: m = 123

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test that DEALLOCATE works
INTEGER, PARAMETER :: maxvalue=1024

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for type errors in DEALLOCATE statements
INTEGER, PARAMETER :: maxvalue=1024

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for semantic errors in DEALLOCATE statements
Module share

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! Test deallocate of use- and host-associated variables
module m1

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! C1141
! A reference to the procedure IEEE_SET_HALTING_MODE ! from the intrinsic
! module IEEE_EXCEPTIONS, shall not ! appear within a DO CONCURRENT construct.

View File

@ -1,5 +1,4 @@
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
! RUN: %python %S/test_errors.py %s %flang_fc1
! C1167 -- An exit-stmt shall not appear within a DO CONCURRENT construct if
! it belongs to that construct or an outer construct.

Some files were not shown because too many files have changed in this diff Show More