Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init3.C
blob: 43372284679fa682c449f68794f582a453030173 [
file
] [
log
] [
blame
]
// N3648: capture init at non-block scope
// { dg-options "-w" }
// { dg-do run { target c++1y } }
int
i
=
42
;
int
j
=
[
x
=
i
]{
return
x
;
}();
int
main
()
{
if
(
j
!=
42
)
__builtin_abort
();
}