From 44dcf7b4499b049c621f361144cf51379b212ed7 Mon Sep 17 00:00:00 2001 From: mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sun, 16 Apr 2000 04:25:18 +0000 Subject: [PATCH] New test git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33182 138bc75d-0d04-0410-961f-82ee72b054a4 --- .../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 000000000000..8555b7528cb9 --- /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()); +} -- GitLab