From: Zack Weinberg Date: Tue, 15 Feb 2000 19:56:54 +0000 (+0000) Subject: New test - sjlj ICE, originally from openbsd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa545500adf713269fd38f26d28523cefc8c0c7b;p=gcc.git New test - sjlj ICE, originally from openbsd From-SVN: r31985 --- diff --git a/gcc/testsuite/g++.old-deja/g++.eh/crash3.C b/gcc/testsuite/g++.old-deja/g++.eh/crash3.C new file mode 100644 index 00000000000..b55e1ecf8d6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.eh/crash3.C @@ -0,0 +1,16 @@ +// Build don't link: +// Origin: Marc Espie +// Special g++ Options: -fsjlj-exceptions + +extern double f(double a); + +void +a() +{ + double e; + double value; + + if (e == 0) + throw 1; + value = f(e); +}