summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash16.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash16.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash16.C20
1 files changed, 20 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 000000000..22583260a
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash16.C
@@ -0,0 +1,20 @@
+// { dg-do assemble }
+// { dg-options "-O2" }
+// Origin: scott snyder <snyder@fnal.gov>
+
+
+void _S_initialize();
+
+class locale
+{
+public:
+ locale() throw()
+ { _S_initialize (); }
+};
+
+void foo(const locale& __loc);
+
+void print (const int&)
+{
+ foo(locale());
+}