Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-mixed.C
blob: d3f434195ea9903756759eab275a4941e6a82dfe [
file
] [
log
] [
blame
]
// { dg-do run { target c++11 } }
#include
<cassert>
int
main
()
{
int
i
=
1
,
j
=
2
;
[&
i
,
j
]
()
mutable
->
void
{
i
=
0
;
j
=
0
;
}
();
assert
(
i
==
0
);
assert
(
j
==
2
);
return
0
;
}