aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/eh4.C
blob: e88a4337db4faaaeb68609590c3d47b448a96b28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Origin: Jean-Marc Bourguet <bourguet@cadence.com>
// Build don't link:

class foo {
public:
  foo() {};
  void throwMe () {
    throw *this;                // ERROR - cannot be used in throw-expression
  };
  virtual void test () = 0;
};