aarch64: Add vector floating point extend pattern [PR113880, PR113869]
[official-gcc.git] / gcc / testsuite / gfortran.dg / illegal_boz_arg_4.f90
blob856cfa9211f9c78363503d5173ce481cb6b7d936
1 ! { dg-do compile }
2 ! { dg-options "-std=f2018" }
3 ! PR fortran/103413
4 ! Contributed by G.Steinmetz
6 program p
7 type t
8 class(*), allocatable :: a
9 end type
10 type(t) :: x
11 allocate (x%a, source=z'1') ! { dg-error "type incompatible" }
12 allocate (x%a, mold=z'1') ! { dg-error "type incompatible" }
13 end