Debian Codegraph @

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

raw
1 // PR c++/66387
2 // { dg-do compile { target c++11 } }
3
4 template <typename T>
5 void
6 bar (T x)
7 {
8 x ();
9 }
10
11 void
12 foo ()
13 {
14 constexpr int a[1] = { 1 };
15 bar ([&]{ return a[0]; });
16 }