2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / type_is_1.f90
blob860a668240ac137952c45df104480c18803ff250
1 ! { dg-do compile }
2 ! PR fortran/66245
3 ! Original testcase by Gerhard Steinmetz
4 ! <gerhard dot steinmetz dot fortran at t-online dot de>
5 program p
6 type t; end type
7 class(t), allocatable :: x
8 call s
9 contains
10 subroutine s
11 select type ( x )
12 type is ( ) ! { dg-error "error in TYPE IS" }
13 end select
14 end subroutine s
15 end program p