1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
3 ! Check for semantic errors in NULLIFY statements
5 INTEGER, PARAMETER :: maxvalue
=1024
14 Type(t
),Allocatable
:: x(:)
17 Procedure(Real) :: prp
20 !ERROR: component in NULLIFY statement must have the POINTER attribute
23 !ERROR: name in NULLIFY statement must have the POINTER attribute
26 !ERROR: name in NULLIFY statement must have the POINTER attribute
29 !ERROR: name in NULLIFY statement must be a variable or procedure pointer name
34 ! Make sure that the compiler doesn't crash when NULLIFY is used in a context
35 ! that has reported errors
38 module function ptrFun()
39 integer, pointer :: ptrFun
43 !ERROR: 'ptrfun' was not declared a separate module procedure
44 module function ptrFun()
45 integer, pointer :: ptrFun