gcc/fortran/:
[official-gcc.git] / gcc / testsuite / gfortran.dg / missing_derived_type_1.f90
blob49c1ec8cedf535c4c17c809f46cec508de0b1f5d
1 ! { dg-do compile }
2 ! Tests the fix for PR29364, in which the the absence of the derived type
3 ! 'nonexist' was not diagnosed.
5 ! Contributed by Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
7 module test
8 implicit none
9 type epot_t
10 integer :: c
11 type(nonexist),pointer :: l ! { dg-error "has not been declared" }
12 end type epot_t
13 end module test
14 ! { dg-final { cleanup-modules "test" } }