]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid spurious test failures when -fno-inline in test flags
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jan 2019 11:06:49 +0000 (11:06 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jan 2019 11:06:49 +0000 (11:06 +0000)
commit6b4a77f22e8d63755453bdae3ce1854fae2d2484
tree1aa8cf0cfa86b0e9b326bd8b1ac68a8d3be4f54e
parent1c2a6eef8661753ce316c46c55c7bb8c4e593943
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267573 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
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