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
17 lines
483 B
Fortran
17 lines
483 B
Fortran
! 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)
|
|
call intSubprogram (*100)
|
|
call extSubprogram (*101)
|
|
call intSubprogram (*101)
|
|
100 PRINT *,'First alternate return'
|
|
!ERROR: Label '101' is not a branch target
|
|
!ERROR: Label '101' is not a branch target
|
|
101 FORMAT("abc")
|
|
contains
|
|
subroutine intSubprogram(*)
|
|
return(1)
|
|
end subroutine
|
|
end
|