From: Jakub Jelinek Date: Wed, 8 Nov 2017 15:48:30 +0000 (+0100) Subject: pr57878.C (__sso_string_base::_M_get_allocator): Return a value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=388f3a645405a384eab6a20bad15a3264025c019;p=gcc.git 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 --- 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