mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-06 01:22:41 +00:00
[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:
parent
e15836361c
commit
6c1ac141d3
@ -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
|
||||
|
@ -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
|
||||
!
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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, &
|
||||
|
@ -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)
|
||||
|
@ -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?
|
||||
|
@ -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!
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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 )
|
||||
|
@ -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, *, *)
|
||||
|
@ -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, *, *)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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!)
|
||||
|
||||
|
@ -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!)
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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).
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user