Commit 6908c1dc by Jonathan Wakely Committed by Jonathan Wakely

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
parent 35a5722c
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.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment