2 ! Test fixes for PR41587 and PR41608.
4 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
6 ! PR41587: used to accept the declaration of component 'foo'
12 class(t0), allocatable :: foo(3) ! { dg-error "deferred shape" }
15 ! PR41608: Would ICE on missing type decl
16 class(t1), pointer :: c ! { dg-error "before it is defined" }
18 select type (c) ! { dg-error "shall be polymorphic" }