summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/block-6.C
blob: fa4c5eab5f4cbc6f2c5a61577ce79164bf526846 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

void foo()
{
  #pragma omp ordered
    {
      return;		// { dg-error "invalid exit" }
    }
}