summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/block-5.c
blob: 741049fddeaad163b1814b3937daed633b96d828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile }

void foo()
{
  #pragma omp master
    {
      goto bad1;	// { dg-error "invalid branch" }
    }

  #pragma omp master
    {
    bad1:
      return;		// { dg-error "invalid branch" }
    }
}