gcc/testsuite/gfortran.dg/goacc/wait.f90
raw| 1 | ! Ensure that ACC WAIT accept integer arguments. |
| 2 | |
| 3 | ! { dg-additional-options -Wuninitialized } |
| 4 | |
| 5 | subroutine foo (wqueue) |
| 6 | implicit none |
| 7 | integer :: wqueue, waitno |
| 8 | ! { dg-note {'waitno' was declared here} {} { target *-*-* } .-1 } |
| 9 | integer, parameter :: waitp = 100 |
| 10 | |
| 11 | !$acc wait (wqueue) |
| 12 | !$acc wait (waitno) |
| 13 | ! { dg-warning {'waitno' is used uninitialized} {} { target *-*-* } .-1 } |
| 14 | !$acc wait (waitp) |
| 15 | !$acc wait (0) |
| 16 | end subroutine foo |