This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r267573 - in /trunk/libstdc++-v3: ChangeLog tes...
- From: redi at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 04 Jan 2019 11:06:50 -0000
- Subject: r267573 - in /trunk/libstdc++-v3: ChangeLog tes...
Author: redi
Date: Fri Jan 4 11:06:49 2019
New Revision: 267573
URL: https://gcc.gnu.org/viewcvs?rev=267573&root=gcc&view=rev
Log:
Avoid spurious test failures when -fno-inline in test flags
These tests rely on inlining, so if -fno-inline is added to the compiler
flags the tests fail. Use the predefined __NO_INLINE__ macro to detect
that situation, and don't bother testing the move assignment.
* testsuite/21_strings/basic_string/modifiers/assign/char/
move_assign_optim.cc: Avoid spurious failure when -fno-inline added
to test flags.
* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
move_assign_optim.cc: Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc
trunk/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc