summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p1248.C
blob: d54e555f3b163f692f7139e5f843f26a0fcaea9d (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
29
// { dg-do run  }
// GROUPS passed pure-virt
extern "C" int printf (const char *, ...);
class Base {
public:
  virtual ~Base() =0;
};

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


Deranged::~Deranged(){}

void foo() {
  Deranged d;
}

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

Base::~Base () { }