Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-89158.C

raw
1 // PR c++/89158
2 // { dg-do compile { target c++11 } }
3
4 struct T { T(const int&); };
5 void Func(T);
6
7 void test()
8 {
9 constexpr int Val = 42;
10 [Val]() { Func(Val); };
11 }