Merge with main truk.
[official-gcc.git] / gcc / testsuite / g++.dg / init / pr48859.C
blob8ef5c2ee4a44ed637c4823f18f92b6a84e6e20a3
1 // PR c++/48859
2 // { dg-do compile }
4 struct HasConstructor {
5   HasConstructor() {}
6 };
8 class ConstMember {
9   const HasConstructor empty_;
12 void foo() {
13   new ConstMember;