Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/eh4.C

raw
1 // { dg-do assemble }
2 // Origin: Jean-Marc Bourguet <[email protected]>
3
4 class foo {
5 public:
6 foo() {}
7 void throwMe () {
8 throw *this; // { dg-error "" } cannot be used in throw-expression
9 }
10 virtual void test () = 0;
11 };
12