Debian Codegraph @

gcc/testsuite/gfortran.dg/deallocate_error_3.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/82994
3 ! Code contributed by Gerhard Steinmetz
4 program p
5 type t
6 end type
7 class(t) :: x ! { dg-error "must be dummy, allocatable or pointer" }
8 deallocate (x) ! { dg-error "not a nonprocedure pointer nor an allocatable" }
9 end