Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init2.C
blob: 83ec57e67576d9d4185e83bf14df622e283fa961 [
file
] [
log
] [
blame
]
// N3648: redundancy and capture init
// { dg-do compile { target c++1y } }
int
main
()
{
int
x
=
42
;
[=,
x
]{};
// { dg-error "redundant" }
[=,&
x
]{};
[&,&
x
]{};
// { dg-error "redundant" }
[&,
x
]{};
[=,
x
=
24
]{};
[&,&
r
=
x
]{};
}