Sign in
gnu
/
gcc
/
772d532e0ba1e4b22c2b7d576e14b34ee929c093
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-shadow3.C
blob: 836432191c71ca5cc34aa714fea95feee8aabbf8 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
int
main
()
{
int
x
=
42
;
auto
lambda
=
[
x
](
int
x
)
{};
// { dg-error "previously declared as a capture" }
}