2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr83471.C
blobb9687265d77b45254e712a848d6ce83ba661ce19
1 /* { dg-do compile } */
3 class a {
4 public:
5   void *operator new(__SIZE_TYPE__, int);
6 };
7 class b : public a {
8 public:
9   b();
10   virtual void c() {}
11   void m_fn2();
13 int d;
14 void e() {
15   long f;
16   b *g;
17   (f);
18   g = new (d) b;
19   g->c();
20   g->m_fn2();