summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/synth1.C
blob: 6c00bc0228e39fefaa676b8dbe5c7f4f492d64b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR middle-end/17525

struct A
{
  ~A();
  int a;
};

struct B : public A
{
  virtual ~B();
};

void run (B& b, B& b1)
{
  b1 = b;
}