2 ! Check that ALLOCATABLE components aren't allowed to the right of a non-zero
8 real, allocatable :: bar(:)
10 type(foo), target :: x(3)
14 allocate(x(:)%bar(5))! { dg-error "must not have the ALLOCATABLE attribute" }
15 x(:)%bar(1) = 1.0 ! { dg-error "must not have the ALLOCATABLE attribute" }
16 p => x(:)%bar(1) ! { dg-error "must not have the ALLOCATABLE attribute" }