aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-11 18:25:23 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-11 18:25:23 +0000
commit5a99c3a649b3da72316bc0d0aa1fbfb022bc4969 (patch)
tree260d06c114a3c476c618eaed74c90aad26da2c6f /gcc
parentf841565e808d607b5fb19f906cc421e30c1b3f74 (diff)
downloadgcc-5a99c3a649b3da72316bc0d0aa1fbfb022bc4969.zip
gcc-5a99c3a649b3da72316bc0d0aa1fbfb022bc4969.tar.gz
gcc-5a99c3a649b3da72316bc0d0aa1fbfb022bc4969.tar.bz2
New test from GNATS.
From-SVN: r44801
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/eh/omit-frame-pointer.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C b/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
new file mode 100644
index 0000000..3792e11
--- /dev/null
+++ b/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
@@ -0,0 +1,25 @@
+// { dg-do run }
+// { dg-options -fomit-frame-pointer }
+
+#include <iostream>
+
+class Bug
+{
+};
+
+int throw_bug()
+{
+ throw Bug();
+
+ return 0;
+}
+
+int main()
+{
+ try {
+ std::cout << throw_bug();
+ } catch (Bug bug) {
+ };
+
+ return 0;
+}