mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 03:36:37 +00:00

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
19 lines
381 B
Fortran
19 lines
381 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
! Test SELECT TYPE errors: C1157
|
|
|
|
subroutine s1()
|
|
type :: t
|
|
end type
|
|
procedure(f) :: ff
|
|
!ERROR: Selector is not a named variable: 'associate-name =>' is required
|
|
select type(ff())
|
|
class is(t)
|
|
class default
|
|
end select
|
|
contains
|
|
function f()
|
|
class(t), pointer :: f
|
|
f => null()
|
|
end function
|
|
end subroutine
|