Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/uninit-use-device-clause.f95

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-Wuninitialized" }
3
4 subroutine test
5 integer, pointer :: p
6 ! { dg-note {'p' was declared here} {} { target *-*-* } .-1 }
7
8 !$acc host_data use_device(p) ! { dg-warning "is used uninitialized" }
9 !$acc end host_data
10 end subroutine test
11