Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi12.C

raw
1 // PR c++/66001
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 struct dt
7 { dt() {} ~ dt() {} };
8
9 struct x {
10 std::initializer_list< dt > f = { {} };
11 } cx;
12
13 struct x2 {
14 struct dt { ~ dt() {} }
15 const & m = {};
16 } cx2;