Commit 1c380095 by Paolo Carlini Committed by Paolo Carlini

7.cc: Include <testsuite_hooks.h>, tweak.

2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/num_put/put/char/7.cc: Include
	<testsuite_hooks.h>, tweak.
	* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.

From-SVN: r68827
parent 11fedfd3
2003-07-02 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/num_put/put/char/7.cc: Include
<testsuite_hooks.h>, tweak.
* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2003-07-01 Phil Edwards <pme@gcc.gnu.org>
* testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
......
......@@ -18,20 +18,24 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
#include <sstream>
#include <iostream>
#include <locale>
#include <testsuite_hooks.h>
// libstdc++/9828
void test01()
{
using namespace std;
bool test = true;
typedef num_put<char> np_t;
ostringstream stream;
const np_t& np = use_facet<np_t>(stream.getloc());
np.put(stream, wcout, ' ', static_cast<long>(10));
VERIFY( stream.str() == ' ');
VERIFY( stream.str() == "10" );
}
int main()
......
......@@ -21,18 +21,21 @@
#include <sstream>
#include <iostream>
#include <locale>
#include <testsuite_hooks.h>
// libstdc++/9828
void test01()
{
using namespace std;
bool test = true;
typedef num_put<wchar_t> npw_t;
wostringstream stream;
const npw_t& npw = use_facet<npw_t>(stream.getloc());
npw.put(stream, cout, L' ', static_cast<long>(10));
VERIFY( stream.str() == L' ');
VERIFY( stream.str() == L"10" );
}
int main()
......
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