Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/array-with-dt-4.f90

raw
1 ! { dg-additional-options -Wuninitialized }
2
3 type t4
4 integer, allocatable :: quux(:)
5 end type t4
6 type t3
7 type(t4), pointer :: qux(:)
8 end type t3
9 type t2
10 type(t3), allocatable :: bar(:)
11 end type t2
12 type t
13 type(t2), allocatable :: foo(:)
14 end type t
15
16 type(t), allocatable :: c(:)
17 ! { dg-note {'c' declared here} {} { target *-*-* } .-1 }
18
19 !$acc enter data copyin(c(5)%foo(4)%bar(3)%qux(2)%quux(:))
20 ! { dg-warning {'c\.offset' is used uninitialized} {} { target *-*-* } .-1 }
21 !$acc exit data delete(c(5)%foo(4)%bar(3)%qux(2)%quux(:))
22 ! { dg-warning {'c\.offset' is used uninitialized} {} { target *-*-* } .-1 }
23 end