aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr83471.C
blob: b9687265d77b45254e712a848d6ce83ba661ce19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */

class a {
public:
  void *operator new(__SIZE_TYPE__, int);
};
class b : public a {
public:
  b();
  virtual void c() {}
  void m_fn2();
};
int d;
void e() {
  long f;
  b *g;
  (f);
  g = new (d) b;
  g->c();
  g->m_fn2();
}