mirror of git://gcc.gnu.org/git/gcc.git
2.cc: Remove junk.
2004-03-20 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc: Remove junk. * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc: Likewise. From-SVN: r79742
This commit is contained in:
parent
14b078a8f3
commit
9c024d9c08
|
@ -1,3 +1,26 @@
|
||||||
|
2004-03-20 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
|
||||||
|
Remove junk.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
|
||||||
|
Likewise.
|
||||||
|
* testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
|
||||||
|
Likewise.
|
||||||
|
|
||||||
2004-03-20 Paolo Carlini <pcarlini@suse.de>
|
2004-03-20 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* include/std/std_valarray.h: Document DR389 [Ready].
|
* include/std/std_valarray.h: Document DR389 [Ready].
|
||||||
|
|
|
@ -24,26 +24,10 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
// elaborated test for ints
|
// elaborated test for ints
|
||||||
bool test02() {
|
bool test02()
|
||||||
|
{
|
||||||
bool test __attribute__((unused)) = true;
|
bool test __attribute__((unused)) = true;
|
||||||
const std::string str_01("20000AB");
|
const std::string str_01("20000AB");
|
||||||
std::stringbuf strb_01(str_01, std::ios_base::in);
|
std::stringbuf strb_01(str_01, std::ios_base::in);
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
bool test03()
|
bool test03()
|
||||||
{
|
{
|
||||||
std::stringbuf sbuf;
|
std::stringbuf sbuf;
|
||||||
|
@ -49,8 +33,8 @@ bool test03()
|
||||||
|
|
||||||
bool test __attribute__((unused)) = true;
|
bool test __attribute__((unused)) = true;
|
||||||
long l01;
|
long l01;
|
||||||
ostr << "12220101";
|
ostr << "12220101";
|
||||||
istr >> l01; // _M_in_end set completely incorrectly here.
|
istr >> l01; // _M_in_end set completely incorrectly here.
|
||||||
VERIFY( l01 == 12220101 );
|
VERIFY( l01 == 12220101 );
|
||||||
VERIFY( istr.rdstate() == std::ios_base::eofbit );
|
VERIFY( istr.rdstate() == std::ios_base::eofbit );
|
||||||
return test;
|
return test;
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00081.html
|
// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00081.html
|
||||||
// Jim Parsons
|
// Jim Parsons
|
||||||
void test06()
|
void test06()
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
class test_numpunct1 : public numpunct<char>
|
class test_numpunct1 : public numpunct<char>
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
class test_numpunct2 : public numpunct<char>
|
class test_numpunct2 : public numpunct<char>
|
||||||
{
|
{
|
||||||
|
@ -57,7 +41,6 @@ void test08()
|
||||||
bool test __attribute__((unused)) = true;
|
bool test __attribute__((unused)) = true;
|
||||||
unsigned int h4 = 0, h3 = 0, h2 = 0;
|
unsigned int h4 = 0, h3 = 0, h2 = 0;
|
||||||
const std::string s1("1,22 205,19 22,123,22");
|
const std::string s1("1,22 205,19 22,123,22");
|
||||||
const std::string s2("1,220 2050,19 202,123,22");
|
|
||||||
|
|
||||||
std::istringstream is(s1);
|
std::istringstream is(s1);
|
||||||
is.imbue(std::locale(std::locale(), new std::test_numpunct2));
|
is.imbue(std::locale(std::locale(), new std::test_numpunct2));
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
bool test09()
|
bool test09()
|
||||||
{
|
{
|
||||||
bool test __attribute__((unused)) = true;
|
bool test __attribute__((unused)) = true;
|
||||||
|
|
|
@ -25,23 +25,8 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
bool test10()
|
||||||
std::string str_02("true false 0 1 110001");
|
{
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
bool test10() {
|
|
||||||
std::string str_01("0 00 000 +0 +0 -0");
|
std::string str_01("0 00 000 +0 +0 -0");
|
||||||
std::stringbuf isbuf_01(str_01);
|
std::stringbuf isbuf_01(str_01);
|
||||||
std::istream is_01(&isbuf_01);
|
std::istream is_01(&isbuf_01);
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
// In the presence of no fmtflags, the input operator should behave
|
// In the presence of no fmtflags, the input operator should behave
|
||||||
// like strtol(x, y, 0)
|
// like strtol(x, y, 0)
|
||||||
// libstdc++/90
|
// libstdc++/90
|
||||||
|
|
|
@ -29,22 +29,6 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
// libstdc++/3720
|
// libstdc++/3720
|
||||||
// excess input should not cause a core dump
|
// excess input should not cause a core dump
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
||||||
|
|
||||||
std::string str_01;
|
|
||||||
std::string str_02("true false 0 1 110001");
|
|
||||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
|
||||||
std::string str_04("0123");
|
|
||||||
|
|
||||||
std::stringbuf isbuf_01(std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
|
||||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
|
||||||
|
|
||||||
std::istream is_01(NULL);
|
|
||||||
std::istream is_02(&isbuf_02);
|
|
||||||
std::istream is_03(&isbuf_03);
|
|
||||||
std::istream is_04(&isbuf_04);
|
|
||||||
std::stringstream ss_01(str_01);
|
|
||||||
|
|
||||||
// libstdc++/3720 part two
|
// libstdc++/3720 part two
|
||||||
void test13()
|
void test13()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue