Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-new3.C

raw
1 // PR c++/93173
2 // { dg-do compile { target c++11 } }
3
4 template<typename> struct S1 {
5 S1(S1 &);
6 ~S1();
7 };
8 struct S2 {
9 S1<void> x;
10 int y;
11 int z;
12 };
13 void f(S1<void> x, int y, int z) { new S2{x, y, z}; }