3 ! Tests standard indepedendent constraints for variables in a data statement
5 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
13 data n
/0/ ! { dg-error "Cannot change attributes" }
17 function foo (m
) result (bar
)
19 integer, allocatable
:: l(:)
21 data l
/42/ ! { dg-error "conflicts with ALLOCATABLE" }
22 data p(1) /1/ ! { dg-error "non-constant array in DATA" }
23 data q
/1/ ! { dg-error "Host associated variable" }
24 data m
/1/ ! { dg-error "conflicts with DUMMY attribute" }
25 data bar
/99/ ! { dg-error "conflicts with RESULT" }
29 data foobar
/0/ ! { dg-error "conflicts with FUNCTION" }