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

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