1 // { dg-do compile }
2 // { dg-require-effective-target c++11 }
3 // { dg-additional-options "-g" }
4 
main()5 int main()
6 {
7   int n = 0;
8 
9 #pragma omp parallel
10 #pragma omp master
11 #pragma omp parallel
12 #pragma omp master
13 #pragma omp parallel for reduction (+: n)
14   for (int i = [](){ return 3; }(); i < 10; ++i)
15     n++;
16 
17   return n;
18 }
19