RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_check_11.f90
blobb6aa79ae260e936d08eee00a8ff2d32d6f2ff5ed
1 ! { dg-do run }
2 ! { dg-options "-fcheck=all" }
4 ! { dg-shouldfail "Pointer check" }
5 ! { dg-output "Fortran runtime error: Pointer actual argument 'y' is not associated" }
8 ! PR fortran/50718
10 ! Was failing (ICE) with -fcheck=pointer if the dummy had the value attribute.
12 type t
13 integer :: p
14 end type t
16 type(t), pointer :: y => null()
18 call sub(y) ! Invalid: Nonassociated pointer
20 contains
21 subroutine sub (x)
22 type(t), value :: x
23 end subroutine
24 end