From 5ead1006da1a2c5698d1ca56e0b3e5167d7bd71f Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sun, 16 Apr 2000 04:25:18 +0000 Subject: [PATCH] New test From-SVN: r33182 --- .../g++.old-deja/g++.other/crash16.C | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/crash16.C 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 00000000000..8555b7528cb --- /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 + +// crash test - XFAIL *-*-* + +void _S_initialize(); + +class locale +{ +public: + locale() throw() + { _S_initialize (); } +}; + +void foo(const locale& __loc); + +void print (const int&) +{ + foo(locale()); +}