Debian Codegraph @

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

raw
1 // PR c++/50224
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-parameter" }
4
5 struct T;
6
7 void m(T& t) // ERROR here
8 {
9 [&]{
10 t; // ``t`` is referenced here
11 };
12 }