]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
table.C: New.
authorEric Christopher <echristo@apple.com>
Thu, 19 Jan 2006 00:26:20 +0000 (00:26 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Thu, 19 Jan 2006 00:26:20 +0000 (00:26 +0000)
2006-01-18  Eric Christopher  <echristo@apple.com>

        * g++.dg/eh/table.C: New.

From-SVN: r109931

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/table.C [new file with mode: 0644]

index deca25d98502149dc84adfa0e86623a08e395f22..6a64ab9a5d8fc9028376f7d0dadb8c409f87683e 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-18  Eric Christopher  <echristo@apple.com>
+
+       * g++.dg/eh/table.C: New.
+
 2006-01-18  DJ Delorie  <dj@redhat.com>
 
        * gcc.dg/Werror-1.c, gcc.dg/Werror-2.c, gcc.dg/Werror-3.c,
diff --git a/gcc/testsuite/g++.dg/eh/table.C b/gcc/testsuite/g++.dg/eh/table.C
new file mode 100644 (file)
index 0000000..6f36bc6
--- /dev/null
@@ -0,0 +1,33 @@
+// { dg-do compile { target *-*-darwin* } }
+// { dg-final { scan-assembler "GCC_except_table0" } }
+void needed();
+void unneeded();
+
+class Bar
+{
+public:
+  Bar() {}
+  virtual ~Bar() {}
+
+  void unneeded();
+};
+
+void needed()
+{
+       Bar b;
+}
+
+//#if 0
+void unneeded()
+{
+       Bar b;
+       b.unneeded();
+}
+//#endif
+
+int main()
+{
+       needed();
+
+       return 0;
+}