summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p11142.C
blob: 9fee770f8740f79c54a6360824012a1338fc4460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// { dg-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();
}