diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-11 19:01:29 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-11 19:01:29 +0000 |
commit | 516dd9949381b3efc07962eb547e9142f6aedca1 (patch) | |
tree | 836abdeae470d0ad4eb3e08f5da556d73cc074a6 /libstdc++-v3/testsuite/27_io | |
parent | 12f322ccf59bb2d1321558aa593ee41e9afd431e (diff) | |
download | gcc-516dd9949381b3efc07962eb547e9142f6aedca1.tar.gz |
2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/locale/cons/3.cc: Split.
* testsuite/22_locale/locale/cons/7222-c.cc: New.
* testsuite/22_locale/locale/cons/7222-env.cc: New.
Check before trying to create a locale from the environment.
* testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Adjust includes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/27_io')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/ios_base/state/1.cc | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc index 64795c05812..4d7a7fe6825 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc @@ -25,11 +25,8 @@ // XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html // { dg-do run { xfail sparc*-*-solaris2* } } -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> -#include <locale> #include <testsuite_hooks.h> std::string str_01; diff --git a/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc index 6097fdb1849..bc6a356edd3 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc @@ -39,9 +39,9 @@ test02() std::string str01; std::string str02; - std::locale loc(""); + std::locale loc_c = std::locale::classic(); std::ostringstream ostr01; - ostr01.imbue(loc); + ostr01.imbue(loc_c); std::ios_base::fmtflags ff = ostr01.flags(std::ios_base::boolalpha); ostr01 << true; |