Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options -w }
3
4 int main()
5 {
6 const int i = 4;
7 [] { constexpr int x = i; };
8 [=] { &i; constexpr int x = i; };
9 [&] { &i; constexpr int x = i; };
10 [i] { &i; constexpr int x = i; };
11 [&i] { &i; constexpr int x = i; };
12 }