5 ! rejects invalid n and improper use
9 integer (kind
=1), intent(in
) :: n
11 !GCC$ unroll 999999999 ! { dg-error "non-negative integral constant less than" }
17 subroutine wrong2(a
, b
, n
)
19 integer (kind
=1), intent(in
) :: n
22 !GCC$ unroll -1 ! { dg-error "non-negative integral constant less than" }
24 call dummy2(a(i
), b(i
), i
)
28 subroutine wrong3(a
, b
, n
)
30 integer (kind
=1), intent(in
) :: n
34 write (*,*) "wrong"! { dg-error "directive does not commence a loop" }
36 call dummy2(a(i
), b(i
), i
)