repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-mixed.C
blob
d3f434195ea9903756759eab275a4941e6a82dfe
1
// { dg-do run { target c++11 } }
2
#include <cassert>
3
4
int main() {
5
int i = 1, j = 2;
6
[&i, j] () mutable -> void { i = 0; j = 0; } ();
7
assert(i == 0);
8
assert(j == 2);
9
10
return 0;
11
}
12