diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2002-02-27 20:54:32 +0100 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2002-02-27 19:54:32 +0000 |
commit | bded68b10851e6a56334e74828ffbd9ab00f55d9 (patch) | |
tree | 9eff87e70ff53d4dfcb9d0d87a6016151fccc720 /libstdc++-v3 | |
parent | f458d1d5d7bd85e412689858ea5d5de681608fbb (diff) | |
download | gcc-bded68b10851e6a56334e74828ffbd9ab00f55d9.zip gcc-bded68b10851e6a56334e74828ffbd9ab00f55d9.tar.gz gcc-bded68b10851e6a56334e74828ffbd9ab00f55d9.tar.bz2 |
ios_manip_basefield.cc (test01): Fix for 64 bit machines.
2002-02-27 Paolo Carlini <pcarlini@unitus.it>
* testsuite/27_io/ios_manip_basefield.cc (test01):
Fix for 64 bit machines.
From-SVN: r50111
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/ios_manip_basefield.cc | 30 |
2 files changed, 20 insertions, 15 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d07ec0b..a65ae40 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2002-02-27 Paolo Carlini <pcarlini@unitus.it> + + * testsuite/27_io/ios_manip_basefield.cc (test01): + Fix for 64 bit machines. + 2002-02-26 Benjamin Kosnik <bkoz@redhat.com> * include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero. diff --git a/libstdc++-v3/testsuite/27_io/ios_manip_basefield.cc b/libstdc++-v3/testsuite/27_io/ios_manip_basefield.cc index 1c5522b..9a19699 100644 --- a/libstdc++-v3/testsuite/27_io/ios_manip_basefield.cc +++ b/libstdc++-v3/testsuite/27_io/ios_manip_basefield.cc @@ -46,27 +46,27 @@ test01() { bool test = true; - const char lit[] = "037 777 654 322\n:037 776 543 211:\n:037 777 654 322 :\n" - ": 037 777 765 433:\n: 037 777 776 544:\n: 04 553 207:\n" + const char lit[] = "0123 456\n: 01 234 567:\n:0123 456 :\n" + ": 012 345:\n: 01 234:\n: 04 553 207:\n" ":0361 100 :\n: 030 071:\n: 02 322:\n" "0x000012 345 678\n"; std::ostringstream oss; oss.imbue(std::locale(std::locale(), new MyNP)); oss << std::oct << std::showbase; - oss << -0123456l << std::endl; + oss << 0123456l << std::endl; oss << ":" << std::setw(11); - oss << -01234567l << ":" << std::endl; + oss << 01234567l << ":" << std::endl; - oss << ":" << std::setw(18) << std::left; - oss << -0123456l << ":" << std::endl; + oss << ":" << std::setw(11) << std::left; + oss << 0123456l << ":" << std::endl; - oss << ":" << std::setw(18) << std::right; - oss << -012345l << ":" << std::endl; + oss << ":" << std::setw(11) << std::right; + oss << 012345l << ":" << std::endl; - oss << ":" << std::setw(18) << std::internal; - oss << -01234l << ":" << std::endl; + oss << ":" << std::setw(11) << std::internal; + oss << 01234l << ":" << std::endl; oss << ":" << std::setw(11); oss << 1234567l << ":" << std::endl; @@ -128,11 +128,11 @@ main() // Projected output: /* -037 777 654 322 -:037 776 543 211: -:037 777 654 322 : -: 037 777 765 433: -: 037 777 776 544: +0123 456 +: 01 234 567: +:0123 456 : +: 012 345: +: 01 234: : 04 553 207: :0361 100 : : 030 071: |