Debian Codegraph @

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

raw
1 // PR c++/84518
2 // { dg-do compile { target c++11 } }
3
4 template<int> void foo()
5 {
6 int x[=]; // { dg-error "" }
7 [&x]{};
8 }
9
10 void bar()
11 {
12 foo<0>(); // { dg-prune-output "not declared" }
13 }