gcc/testsuite/gfortran.dg/gomp/dispatch-4.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-additional-options "-fdump-tree-gimple" } |
| 3 | |
| 4 | module main |
| 5 | implicit none |
| 6 | interface |
| 7 | subroutine f2 () |
| 8 | end subroutine |
| 9 | end interface |
| 10 | contains |
| 11 | |
| 12 | subroutine test () |
| 13 | !$omp dispatch ! { dg-final { scan-tree-dump-not "#pragma omp task" "gimple" } } |
| 14 | call f2 () |
| 15 | !$omp dispatch nowait ! { dg-final { scan-tree-dump-not "nowait" "gimple" } } |
| 16 | call f2 () |
| 17 | end subroutine |
| 18 | end module |
| 19 |