libstdc++-v3/ChangeLog:

        PR libstdc++/117751
        * testsuite/18_support/50594.cc: Edit dg-options to include the
        -fno-assume-sane-operators-new-delete option.
---

Tested x86_64-linux. Pushed to trunk.

I checked the other tests that replace operator new and operator delete,
but I think they're OK without this option. Something about
-fwhole-program causes the problem here, but other tests don't use that.

 libstdc++-v3/testsuite/18_support/50594.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/18_support/50594.cc 
b/libstdc++-v3/testsuite/18_support/50594.cc
index ce45789e16a..7b736eb1dec 100644
--- a/libstdc++-v3/testsuite/18_support/50594.cc
+++ b/libstdc++-v3/testsuite/18_support/50594.cc
@@ -1,4 +1,4 @@
-// { dg-options "-fwhole-program" }
+// { dg-options "-fwhole-program -fno-assume-sane-operators-new-delete" }
 // { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 // { dg-require-effective-target std_allocator_new }
 // { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } }
-- 
2.47.0

Reply via email to