gcc/testsuite/gfortran.dg/goacc/array-with-dt-5.f90
raw| 1 | ! { dg-additional-options -Wuninitialized } |
| 2 | |
| 3 | type t2 |
| 4 | integer :: bar |
| 5 | end type t2 |
| 6 | type t |
| 7 | type(t2), pointer :: foo |
| 8 | end type t |
| 9 | |
| 10 | type(t) :: c |
| 11 | ! { dg-note {'c' declared here} {} { target *-*-* } .-1 } |
| 12 | |
| 13 | !$acc enter data copyin(c%foo) |
| 14 | ! { dg-warning {'c\.foo' is used uninitialized} {} { target *-*-* } .-1 } |
| 15 | |
| 16 | end |