summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/master-1.c
blob: 2681c216a3ff79dd086b715798af4e3619480e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */

extern void bar(int);

void foo (void)
{
  #pragma omp master
    bar(0);

  #pragma omp master
  {
    bar(1);
    bar(2);
  }

  /* Yes, this is legal -- structured-block contains statement contains
     openmp-construct contains master-construct.  */
  #pragma omp master
  #pragma omp master
  #pragma omp master
    ;
}