1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror
2 ! Confirm enforcement of constraint C723 in F2018 for procedure pointers
7 !PORTABILITY: A dummy procedure pointer should not have assumed-length CHARACTER(*) result type
8 procedure(character(*)), pointer :: parg
9 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, named constant, or external function result
10 procedure(character(*)), pointer :: plocal
16 subroutine subr_1(parg_1
)
17 !PORTABILITY: A dummy procedure pointer should not have assumed-length CHARACTER(*) result type
18 procedure(character(*)), pointer :: parg_1
23 character(*) function f()
29 character(4), external :: f
30 procedure(character(4)), pointer :: p