Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/stabilize-6812.75.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-shadow1.C
blob: fcfc39e3eb65b89eb7344e9ab20780f0b4a65a2b [
file
] [
log
] [
blame
]
// PR c++/55357
// { dg-do compile { target c++11 } }
// { dg-options "-Wshadow" }
int
main
()
{
int
x
=
1
;
// { dg-message "shadowed" }
auto
const
lambda
=
[](
int
x
)
{
// { dg-warning "shadows" }
return
x
;
};
}