aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-04-16 04:25:18 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-04-16 04:25:18 +0000
commit5ead1006da1a2c5698d1ca56e0b3e5167d7bd71f (patch)
tree7cd635c4b95c15fcc7561e7d65c962ec5033fe01 /gcc
parent8bfecb841aa979c01bc2dfd13fe31d6cef20d06c (diff)
downloadgcc-5ead1006da1a2c5698d1ca56e0b3e5167d7bd71f.zip
gcc-5ead1006da1a2c5698d1ca56e0b3e5167d7bd71f.tar.gz
gcc-5ead1006da1a2c5698d1ca56e0b3e5167d7bd71f.tar.bz2
New test
From-SVN: r33182
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash16.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash16.C b/gcc/testsuite/g++.old-deja/g++.other/crash16.C
new file mode 100644
index 0000000..8555b75
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash16.C
@@ -0,0 +1,21 @@
+// Build don't link:
+// Special g++ Options: -O2
+// Origin: scott snyder <snyder@fnal.gov>
+
+// crash test - XFAIL *-*-*
+
+void _S_initialize();
+
+class locale
+{
+public:
+ locale() throw()
+ { _S_initialize (); }
+};
+
+void foo(const locale& __loc);
+
+void print (const int&)
+{
+ foo(locale());
+}