From 388f3a645405a384eab6a20bad15a3264025c019 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 8 Nov 2017 16:48:30 +0100 Subject: [PATCH] pr57878.C (__sso_string_base::_M_get_allocator): Return a value. * g++.dg/pr57878.C (__sso_string_base::_M_get_allocator): Return a value. From-SVN: r254537 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.dg/pr57878.C | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca2f9c7e708..4da3435f37c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2017-11-08 Jakub Jelinek + * g++.dg/pr57878.C (__sso_string_base::_M_get_allocator): Return + a value. + PR tree-optimization/78821 * gcc.dg/store_merging_2.c: Expect 3 store mergings instead of 2. * gcc.dg/store_merging_13.c (f7, f8, f9, f10, f11, f12, f13): New diff --git a/gcc/testsuite/g++.dg/pr57878.C b/gcc/testsuite/g++.dg/pr57878.C index 231f9e346b9..5df2b7c9ef4 100644 --- a/gcc/testsuite/g++.dg/pr57878.C +++ b/gcc/testsuite/g++.dg/pr57878.C @@ -95,6 +95,8 @@ namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { } __sso_string_base(const __sso_string_base& __rcs); const _CharT_alloc_type& _M_get_allocator() const { + static _CharT_alloc_type c; + return c; } }; template -- 2.30.2