Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-Wshadow" }
3
4 struct A
5 {
6 int i;
7 void f()
8 {
9 [=]{ int i; }; // { dg-warning "shadows" }
10 }
11 };