summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/pr48859.C
blob: 8ef5c2ee4a44ed637c4823f18f92b6a84e6e20a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/48859
// { dg-do compile }

struct HasConstructor {
  HasConstructor() {}
};

class ConstMember {
  const HasConstructor empty_;
};

void foo() {
  new ConstMember;
}