summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/block-5.c
blob: 450106feeb13d1339e01e8ab0f6c14fa0a140ae8 (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 exit" }
    }

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