Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-70343.C

raw
1 // PR c++/70343
2 // { dg-do run { target c++11 } }
3
4 struct Empty{};
5
6 template<class T>
7 struct Data{
8 int x;
9 float y;
10
11 int properties_parcel4[10];
12
13 Empty j = [&](){
14 int i = 10;
15 properties_parcel4[0] = i;
16 return Empty();
17 }();
18 };
19
20 int main () {
21 Data<int> k;
22
23 return 0;
24 }