gcc/testsuite/gfortran.dg/goacc/omp-108382.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-additional-options "-fopenmp" } |
| 3 | |
| 4 | module m_108382_a |
| 5 | implicit none |
| 6 | integer :: x, y |
| 7 | |
| 8 | !$acc declare copyin(x, & |
| 9 | !$acc y) |
| 10 | !$omp declare target(x, & |
| 11 | !$omp y) |
| 12 | end module m_108382_a |
| 13 | |
| 14 | module m_108382_b |
| 15 | implicit none |
| 16 | integer :: x, y |
| 17 | |
| 18 | !$omp declare target(x, & |
| 19 | !$omp y) |
| 20 | !$acc declare copyin(x, & |
| 21 | !$acc y) |
| 22 | end module m_108382_b |