aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/attrs-8.C
blob: 30cfe998dcf6affe1bb4e5890bb01ce723294965 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++11 } }

void
foo ()
{
  // Unsure if this shouldn't be invalid, whether we shouldn't require
  // that each standalone directive sits on its own empty statement.
  [[omp::sequence (omp::directive (barrier), omp::directive (barrier))]];
  [[omp::sequence (omp::directive (taskyield), omp::directive (taskwait))]];
}