Commit 6ec3c9c8 by Jonathan Wakely Committed by Jonathan Wakely

Fix missing returns in libstdc++ header and tests

	* include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
	return statement.
	* testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
	Return void.
	* testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
	Likewise.
	* testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
	missing return statements.
	* testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
	Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
	Return void.
	* testsuite/special_functions/14_expint/pr68397.cc: Likewise.

From-SVN: r249238
parent 32e37414
2017-06-16 Jonathan Wakely <jwakely@redhat.com>
* include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
return statement.
* testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
Return void.
* testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
Likewise.
* testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
missing return statements.
* testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Return void.
* testsuite/special_functions/14_expint/pr68397.cc: Likewise.
2017-06-16 François Dumont <fdumont@gcc.gnu.org>
* include/bits/stl_bvector.h
......
......@@ -482,6 +482,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
{
if (_M_buf->sputn(__p, __n) < __n)
return false;
return true;
}
// convert the put area and write to the byte stream buffer
......
......@@ -22,7 +22,7 @@
#include <string_view>
#include <testsuite_hooks.h>
bool
void
test01()
{
typedef std::string_view::size_type csize_type;
......
......@@ -22,7 +22,7 @@
#include <string_view>
#include <testsuite_hooks.h>
bool
void
test01()
{
typedef std::wstring_view::size_type csize_type;
......
......@@ -39,10 +39,12 @@ struct Val
{
val = other.val;
other.moved_from_assign = true;
return *this;
}
Val& operator=(const Val& other)
{
val = other.val;
return *this;
}
};
......
......@@ -38,10 +38,12 @@ struct Val
{
val = other.val;
other.moved_from_assign = true;
return *this;
}
Val& operator=(const Val& other)
{
val = other.val;
return *this;
}
};
......
......@@ -50,7 +50,7 @@ void test12_aux(bool integer_type)
VERIFY(is.fail());
}
bool test12()
void test12()
{
test12_aux<short>(true);
test12_aux<int>(true);
......
......@@ -23,7 +23,7 @@
#include <cmath>
#include <testsuite_hooks.h>
int
void
test01()
{
// Answers from Wolfram Alpha.
......
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