aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p11142.C
blob: a22ca45bbd71f070b5e3640232227f048ed36a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:
// Special g++ Options: -fexceptions -O -g
// prms-id: 11142

class RWxmsg {
public:
  RWxmsg();
  virtual ~RWxmsg();
};

class RWTHRInternalError : public RWxmsg {
public:
  virtual ~RWTHRInternalError() { }
};

void setCount(int count) {
  throw RWTHRInternalError();
}