gcc/testsuite/g++.dg/gomp/attrs-8.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | void |
| 4 | foo () |
| 5 | { |
| 6 | // Unsure if this shouldn't be invalid, whether we shouldn't require |
| 7 | // that each standalone directive sits on its own empty statement. |
| 8 | [[omp::sequence (omp::directive (barrier), omp::directive (barrier))]]; |
| 9 | [[omp::sequence (omp::directive (taskyield), omp::directive (taskwait))]]; |
| 10 | } |