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 0000000000000000000000000000000000000000..8555b7528cb9522d0a1854c4bc0a54aaa3375a54 --- /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()); +}