Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init3.C
blob: 49ebde7ff6beda778a1e0aec5e743a9c3268f608 [
file
] [
log
] [
blame
]
// N3648: capture init at non-block scope
// { dg-options "-w" }
// { dg-do run { target c++14 } }
int
i
=
42
;
int
j
=
[
x
=
i
]{
return
x
;
}();
int
main
()
{
if
(
j
!=
42
)
__builtin_abort
();
}