2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_is_1.f90
blobb5bc5a99c8dbc43b25ac78b2f426471b65d9f651
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 class is ( ) ! { dg-error "error in CLASS IS" }
13 end select
14 end subroutine s
15 end program p