libgomp/testsuite/libgomp.fortran/task-7.f90
raw| 1 | ! { dg-do run } |
| 2 | |
| 3 | program main |
| 4 | use omp_lib |
| 5 | implicit none |
| 6 | |
| 7 | !$omp task final (.true.) |
| 8 | if (.not. omp_in_final ()) & |
| 9 | error stop |
| 10 | !$omp task |
| 11 | if (.not. omp_in_final ()) & |
| 12 | error stop |
| 13 | !$omp target nowait |
| 14 | if (omp_in_final ()) & |
| 15 | error stop |
| 16 | !$omp end target |
| 17 | if (.not. omp_in_final ()) & |
| 18 | error stop |
| 19 | !$omp taskwait |
| 20 | !$omp end task |
| 21 | !$omp end task |
| 22 | end |