libstdc++: Fix tests that fail with old std::string ABI
authorJonathan Wakely <jwakely@redhat.com>
Wed, 14 Oct 2020 15:15:49 +0000 (16:15 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 14 Oct 2020 15:15:49 +0000 (16:15 +0100)
These two tests have started to fail with the old std::string ABI. The
scan-assembler-not checks fail because they match debug info, not code.

Adding -g0 to the test flags fixes them.

libstdc++-v3/ChangeLog:

* testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc:
Do not generate debug info.
* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc:
Likewise.

libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc
libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc

index 85584d68e47775da78a64f4a46f319b1ce2afba2..9546ca68e4dfdd9112f74842aa393105a4745279 100644 (file)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-O1" }
+// { dg-options "-O1 -g0" }
 // { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler-not "__throw_length_error" } }
 // { dg-final { scan-assembler-not "__throw_bad_alloc" } }
index 9f0a86f3dff02f6ccdf742f5d832a4f3279fd471..752856b800dcd81c833cba6de7cb6e91220fd74c 100644 (file)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-O1" }
+// { dg-options "-O1 -g0" }
 // { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler-not "__throw_length_error" } }
 // { dg-final { scan-assembler-not "__throw_bad_alloc" } }