lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / unlimited_polymorphic_33.f90
blob8bb8864cb26b3f0f0e6dd5aaa955dad8eebab5e7
1 ! { dg-do compile }
2 ! PR fortran/101349 - ICE in gfc_get_descriptor_field
3 ! Check constraint F2008:C628 / F2018:C932
5 subroutine s(x)
6 class(*) :: x(:)
7 allocate (x, source=['abc']) ! { dg-error "must be ALLOCATABLE or a POINTER" }
8 end
10 subroutine t(x)
11 class(*), allocatable :: x(:)
12 allocate (x, source=['abc'])
13 end
15 subroutine u(x)
16 class(*), pointer :: x(:)
17 allocate (x, source=['abc'])
18 end