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()); +}