OSDN Git Service

* g++.dg/special/ecos.exp (conpr-1.C): Do not write in $srcdir.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / eh4.C
1 // Origin: Jean-Marc Bourguet <bourguet@cadence.com>
2 // Build, don't link:
3
4 class foo {
5 public:
6   foo() {};
7   void throwMe () {
8     throw *this;                // ERROR - cannot be used in throw-expression
9   };
10   virtual void test () = 0;
11 };
12