Fix test failure when -fno-inline is used

This currently checks _GLIBCXX_USE_DUAL_ABI which is incorrect, as that
can be true when _GLIBCXX_USE_CXX11_ABI == 0. The correct check would be
_GLIBCXX_USE_CXX11_ABI == 1, but that's made redundant by the cxx11-abi
effective target that the test requires. However, the test will fail if
-fno-inline is used, so check __NO_INLINE__ instead.

	* testsuite/23_containers/list/61347.cc: Avoid spurious failure when
	-fno-inline added to test flags.

From-SVN: r267582
This commit is contained in:
Jonathan Wakely 2019-01-04 18:56:26 +00:00 committed by Jonathan Wakely
parent 35a5722c7b
commit 6908c1dc6f
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2019-01-04 Jonathan Wakely <jwakely@redhat.com>
* testsuite/23_containers/list/61347.cc: Avoid spurious failure when
-fno-inline added to test flags.
* testsuite/21_strings/basic_string/requirements/
explicit_instantiation/debug.cc: Remove XFAIL for old ABI.

View File

@ -42,7 +42,7 @@ void testc(const std::list<short>& l)
int main()
{
#if _GLIBCXX_USE_DUAL_ABI
#if ! __NO_INLINE__
std::list<short> l;
testm(l);
testc(l);