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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-70570.C
blob
debe34116fea924c8047aba8c006db3c30e5434c
1
// PR c++/70570
2
// { dg-do assemble { target c++14 } }
3
4
template<typename T> void foo(T f) {
5
f(1);
6
}
7
8
int main() {
9
static const int x = 42;
10
foo([](auto y){
11
x;
12
[](){
13
x;
14
};
15
});
16
}