gcc/testsuite/gfortran.dg/gomp/pr104428.f90
raw| 1 | ! { dg-do compile } |
| 2 | |
| 3 | program p |
| 4 | interface |
| 5 | subroutine x |
| 6 | end subroutine x |
| 7 | end interface |
| 8 | contains |
| 9 | subroutine foo |
| 10 | !$omp declare variant(x) match(construct={do}) |
| 11 | end |
| 12 | subroutine bar |
| 13 | !$omp declare variant(y) match(construct={do}) ! { dg-error "Cannot find symbol 'y'" } |
| 14 | end |
| 15 | end |