Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / eh / crossjump1.C
blobccb0ffb2185568969c4ed11d16b5f37b61475dcd
1 // This testcase failed on s390, because cross-jumping merged 2 calls,
2 // one with REG_EH_REGION note with no handlers (ie. termination)
3 // and one without REG_EH_REGION note.
4 // { dg-do run }
5 // { dg-options "-O2" }
7 #include <exception>
8 #include <string>
10 struct E : public std::exception
12   std::string m;
13   E () : m ("test") { }
14   ~E () throw() { }
17 struct C : public E { };
19 void foo ()
21   throw C ();
24 int main ()
26   try
27     {
28       foo ();
29     }
30   catch (...) { }