Commit 631e3e1b by Jonathan Wakely Committed by Jonathan Wakely

Fix testsuite bugs.

	* testsuite/20_util/exchange/1.cc: Add missing return statements.
	* testsuite/20_util/pair/40925.cc: Avoid most vexing parse.
	* testsuite/22_locale/codecvt_byname/50714.cc: Add missing exception
	specifications.

From-SVN: r209196
parent aabc3aff
2014-04-07 Jonathan Wakely <jwakely@redhat.com>
* testsuite/20_util/exchange/1.cc: Add missing return statements.
* testsuite/20_util/pair/40925.cc: Avoid most vexing parse.
* testsuite/22_locale/codecvt_byname/50714.cc: Add missing exception
specifications.
2014-04-02 Dominique d'Humieres <dominiq@lps.ens.fr> 2014-04-02 Dominique d'Humieres <dominiq@lps.ens.fr>
Jack Howarth <howarth@bromo.med.uc.edu> Jack Howarth <howarth@bromo.med.uc.edu>
......
...@@ -78,8 +78,8 @@ void test04() ...@@ -78,8 +78,8 @@ void test04()
To() = default; To() = default;
To(const To&) = default; To(const To&) = default;
To(const From&) = delete; To(const From&) = delete;
To& operator=(const From&) { value = 1; } To& operator=(const From&) { value = 1; return *this; }
To& operator=(From&&) { value = 2; } To& operator=(From&&) { value = 2; return *this; }
}; };
To t; To t;
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++11" }
// { dg-do compile } // { dg-do compile }
// Copyright (C) 2009-2014 Free Software Foundation, Inc. // Copyright (C) 2009-2014 Free Software Foundation, Inc.
...@@ -63,5 +63,5 @@ void test01() ...@@ -63,5 +63,5 @@ void test01()
std::pair<move_only, int*> p15(move_only(), ip); std::pair<move_only, int*> p15(move_only(), ip);
std::pair<move_only, int X::*> p16(move_only(), mp); std::pair<move_only, int X::*> p16(move_only(), mp);
std::pair<move_only, move_only> p17(move_only(), move_only()); std::pair<move_only, move_only> p17{move_only(), move_only()};
} }
...@@ -52,12 +52,12 @@ namespace std ...@@ -52,12 +52,12 @@ namespace std
template<> template<>
int int
codecvt<mychar, char, mbstate_t>::do_encoding() const codecvt<mychar, char, mbstate_t>::do_encoding() const throw()
{ return 0; } { return 0; }
template<> template<>
bool bool
codecvt<mychar, char, mbstate_t>::do_always_noconv() const codecvt<mychar, char, mbstate_t>::do_always_noconv() const throw()
{ return false; } { return false; }
template<> template<>
...@@ -69,7 +69,7 @@ namespace std ...@@ -69,7 +69,7 @@ namespace std
template<> template<>
int int
codecvt<mychar, char, mbstate_t>::do_max_length() const codecvt<mychar, char, mbstate_t>::do_max_length() const throw()
{ return 4; } { return 4; }
} }
......
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