* g++.old-deja/g++.eh/sjlj1.C: test checked sjlj-exception
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 31 Oct 1998 00:29:38 +0000 (00:29 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 31 Oct 1998 00:29:38 +0000 (00:29 +0000)
From-SVN: r23465

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.eh/sjlj1.C [new file with mode: 0644]

index e393c69daa095a98753dc734c87dc841c69edb4e..ac9fd77ef3bd240aab5ecb8ab22a5d70af367305 100644 (file)
@@ -1,5 +1,7 @@
 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.eh/sjlj1.C: test checked sjlj-exception
+
        * g++.old-deja/g++.pt/spec24.C: ensure that template
        specializations start with template headers
 
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/sjlj1.C b/gcc/testsuite/g++.old-deja/g++.eh/sjlj1.C
new file mode 100644 (file)
index 0000000..bf612e2
--- /dev/null
@@ -0,0 +1,11 @@
+// Special g++ Options: -fsjlj-exceptions
+
+// execution test - XFAIL *-*-*
+
+void foo() throw(int) { throw 1; }
+
+int main() {
+  try { foo(); }
+  catch(int) { return 0; }
+  abort();
+}