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

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