1 /* { dg-do compile } */ 2 3 extern void bar(int); 4 foo(void)5void foo (void) 6 { 7 #pragma omp master 8 bar(0); 9 10 #pragma omp master 11 { 12 bar(1); 13 bar(2); 14 } 15 16 /* Yes, this is legal -- structured-block contains statement contains 17 openmp-construct contains master-construct. */ 18 #pragma omp master 19 #pragma omp master 20 #pragma omp master 21 ; 22 } 23