aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-29 00:27:54 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-29 00:27:54 +0000
commitee18ef85f81baab0cfc8e6744d43bf04aac1a12e (patch)
tree5d331fd54056aaa17e1174bf83421a7cc253d7e5 /libstdc++-v3/testsuite
parente7e2fb785e112d1b19f7b798484ff3397a3c5216 (diff)
2001-11-28 Paolo Carlini <pcarlini@unitus.it>
libstdc++/3655 * include/bits/locale_facets.tcc (__pad): correctly output hex numbers internally aligned. * testsuite/27_io/ostream_inserter_arith.cc: Add testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/27_io/ostream_inserter_arith.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/ostream_inserter_arith.cc b/libstdc++-v3/testsuite/27_io/ostream_inserter_arith.cc
index bd49ebf7f76..25a0c1283a5 100644
--- a/libstdc++-v3/testsuite/27_io/ostream_inserter_arith.cc
+++ b/libstdc++-v3/testsuite/27_io/ostream_inserter_arith.cc
@@ -308,11 +308,25 @@ test03()
return 0;
}
+// libstdc++/3655
+int
+test04()
+{
+ stringbuf strbuf;
+ ostream o(&strbuf);
+
+ o << hex << showbase << setw(6) << internal << 255;
+ VERIFY( strbuf.str() == "0x ff" );
+
+ return 0;
+}
+
int
main()
{
test01();
test02();
+ test04();
#ifdef TEST_NUMPUT_VERBOSE
cout << "Test passed!" << endl;
#endif