new
authorJason Merrill <jason@gcc.gnu.org>
Sat, 7 Feb 1998 02:04:30 +0000 (21:04 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 7 Feb 1998 02:04:30 +0000 (21:04 -0500)
From-SVN: r17753

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

diff --git a/gcc/testsuite/g++.old-deja/g++.eh/flow1.C b/gcc/testsuite/g++.old-deja/g++.eh/flow1.C
new file mode 100644 (file)
index 0000000..81c70af
--- /dev/null
@@ -0,0 +1,21 @@
+#include <stdio.h>
+
+int bar ()
+{
+  throw 100;
+}
+
+main ()
+{
+  int i = 0;                   // this gets deleted after flow analysis
+  try
+    {
+      i = bar ();
+    }
+  catch (...)
+    {
+    }
+
+  printf ("i = %d\n", i);
+  return i;
+}