OSDN Git Service

new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 1998 02:04:30 +0000 (02:04 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 1998 02:04:30 +0000 (02:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17753 138bc75d-0d04-0410-961f-82ee72b054a4

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;
+}