Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / testsuite / gfortran.dg / deallocate_error_3.f90
blob149b7c8c15a29cb3addf8b13669161411ae14e62
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