aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p1248.C
blob: 3db677c5b80ec3ade69e41c29e2f56a569016f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// GROUPS passed pure-virt
extern "C" { void printf(const char *, ...); }
class Base {
public:
  virtual ~Base() =0;
};

class Deranged : public Base {
public:
  int value;
  virtual ~Deranged();
};


Deranged::~Deranged(){}

void foo() {
  Deranged d;
}

main()
{
  foo();
  printf("PASS\n");
  return 0;
}

Base::~Base () { }