repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr107558.C
blob
8a6b8d45df74bdf23cd1918b1e9492972cd60541
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 } }
5
6
int a = 15;
7
8
void
9
foo ()
10
{
11
auto &&l = [&]() { return a; };
12
#pragma omp target parallel
13
l ();
14
}