Debian Codegraph @

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

raw
1 // PR c++/90212
2 // { dg-do compile { target c++11 } }
3
4 template<typename T> struct tuple {
5 constexpr tuple(T&& t) : t(t) { }
6 int t;
7 };
8
9 void foo() {
10 constexpr tuple<int> v1{1};
11 constexpr auto v2 = v1;
12 [&]{ constexpr auto v2 = v1; };
13 }