mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 20:01:31 -05:00
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com> PR c++/70570 * g++.dg/cpp1y/lambda-generic-70570.C: New. From-SVN: r253370
17 lines
203 B
C
17 lines
203 B
C
// PR c++/70570
|
|
// { dg-do assemble { target c++14 } }
|
|
|
|
template<typename T> void foo(T f) {
|
|
f(1);
|
|
}
|
|
|
|
int main() {
|
|
static const int x = 42;
|
|
foo([](auto y){
|
|
x;
|
|
[](){
|
|
x;
|
|
};
|
|
});
|
|
}
|