C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr107558.C
blob8a6b8d45df74bdf23cd1918b1e9492972cd60541
1 // PR c++/107558
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-fmerge-all-constants" }
4 // { dg-additional-options "-flto" { target lto } }
6 int a = 15;
8 void
9 foo ()
11   auto &&l = [&]() { return a; };
12 #pragma omp target parallel
13   l ();