RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr107681.f90
blob0999ad9264958f019aee222074a61598686b3428
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib" }
3 ! PR fortran/107681 - ICE in gfc_type_is_extensible
4 ! Contributed by G.Steinmetz
6 program p
7 type t
8 integer, allocatable :: a
9 end type
10 class(t) :: x[*] ! { dg-error "must be dummy, allocatable or pointer" }
11 associate (y => x) ! { dg-error "Invalid array reference" }
12 end associate
13 end