2 ! { dg-options "-fdec-structure" }
4 ! Comprehensive compile tests for what unions CAN'T do.
9 union a b c
! { dg-error "Junk after UNION" }
11 map a b c
! { dg-error "Junk after MAP" }
12 integer x
! { dg-error "Unexpected" }
13 structure /s2
/ ! { dg-error "Unexpected" }
15 map ! { dg-error "Unexpected" }
20 ! Initialization expressions
24 integer(4) :: x
= 1600 ! { dg-error "Conflicting initializers" }
25 integer(4) :: y
= 1800
29 integer :: e
= 0 ! { dg-error "Conflicting initializers" }
32 real :: p
= 1.3, q
= 3.7 ! { dg-error "Conflicting initializers" }