libstdc++: Fix tests that fail with old std::string ABI

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.
This commit is contained in:
Jonathan Wakely 2020-10-14 16:15:49 +01:00
parent a121715bca
commit 2b9c09a78b
2 changed files with 2 additions and 2 deletions

View 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" } }

View 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" } }