aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2009-01-07 22:56:32 +0100
committerUros Bizjak <uros@gcc.gnu.org>2009-01-07 22:56:32 +0100
commitc0f645750c9a137136860fdf91a76b92b847263f (patch)
treec3b1ef3c45c9ca0c20d5f73c60e16b7cd471ee81 /gcc/testsuite/g++.dg
parentffaf1e05dd024cc57a21cea23722e0e37e5d8ebb (diff)
downloadgcc-c0f645750c9a137136860fdf91a76b92b847263f.zip
gcc-c0f645750c9a137136860fdf91a76b92b847263f.tar.gz
gcc-c0f645750c9a137136860fdf91a76b92b847263f.tar.bz2
re PR target/38706 (../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault)
PR target/38706 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call free_after_compilation when outputting a thunk. (alpha_output_mi_thunk_osf): Assert that we are processing a thunk. Do not call free_after_compilation here. testsuite/ChangeLog: PR target/38706 * g++.dg/other/pr38706.C: New test. From-SVN: r143167
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r--gcc/testsuite/g++.dg/other/pr38706.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr38706.C b/gcc/testsuite/g++.dg/other/pr38706.C
new file mode 100644
index 0000000..ec10d90
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/pr38706.C
@@ -0,0 +1,19 @@
+// PR target/38706
+// { dg-do compile }
+// { dg-options "-O2" }
+
+class ios_base
+{
+public:
+ virtual ~ios_base ();
+
+};
+
+class istrstream:virtual public ios_base
+{
+public:
+ virtual ~istrstream ();
+
+};
+
+istrstream::~istrstream () {}