2 ! Tests standard indepedendent constraints for variables in a data statement
4 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
12 data n
/0/ ! { dg-error "Cannot change attributes" }
16 function foo (m
) result (bar
)
18 integer, allocatable
:: l(:)
20 data l
/42/ ! { dg-error "conflicts with ALLOCATABLE" }
21 data p(1) /1/ ! { dg-error "non-constant array in DATA" }
22 data q
/1/ ! { dg-error "Host associated variable" }
23 data m
/1/ ! { dg-error "conflicts with DUMMY attribute" }
24 data bar
/99/ ! { dg-error "conflicts with RESULT" }
28 data foobar
/0/ ! { dg-error "conflicts with FUNCTION" }
32 ! { dg-final { cleanup-modules "global" } }