2 ! { dg-options "-fcoarray=single -std=f2008" }
3 ! PR 38536 - array sections as arguments to c_loc are illegal.
15 type(t2
), target
:: tt
16 type(t3
), target
:: ttt
17 integer(c_int
), target
:: n(3)
18 integer(c_int
), target
:: x
[*]
22 p
= c_loc(n(1:2)) ! OK: interop type + contiguous
23 p
= c_loc(ttt
%t(5,1:2)%i(1)) ! FIXME: Noncontiguous (invalid) - compile-time testable
24 p
= c_loc(x
[1]) ! { dg-error "shall not be coindexed" }