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
9 lines
205 B
Fortran
9 lines
205 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
! Check subroutine with alt return
|
|
|
|
SUBROUTINE TEST (N, *, *)
|
|
IF ( N .EQ. 0 ) RETURN
|
|
IF ( N .EQ. 1 ) RETURN 1
|
|
RETURN 2
|
|
END
|