RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / dec_structure_20.f90
blob9e952040076e5f100229fc59561732ff42dde705
1 ! { dg-do compile }
2 ! { dg-options "-fdec-structure" }
4 ! Test error handling for %FILL
6 implicit none
8 structure /s/
9 integer(2) i /3/
10 integer(2) %fill /4/ ! { dg-error "cannot have an initializer" }
11 integer(2), pointer :: %fill ! { dg-error "cannot have attributes" }
12 end structure
14 type t
15 integer %fill ! { dg-error "not allowed outside STRUCTURE" }
16 endtype
18 end