2 ! { dg-options "-fcheck=all" }
4 ! { dg-shouldfail "Pointer check" }
5 ! { dg-output "Fortran runtime error: Pointer actual argument 'p' is not associated" }
9 ! Was failing with -fcheck=pointer: Segfault at run time
11 integer, pointer :: p
=> null()
13 call sub2(%val(p
)) ! Invalid: Nonassociated pointer
16 ! Not quite correct dummy, but if one uses VALUE, gfortran
17 ! complains about a missing interface - which we cannot use
18 ! if we want to use %VAL().