mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 09:10:36 +08:00
1.cc: Fix, null-terminate array1 at the outset.
2005-01-01 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix, null-terminate array1 at the outset. * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc: Likewise. From-SVN: r92789
This commit is contained in:
parent
91c537b758
commit
d3f128e9e6
libstdc++-v3
File diff suppressed because it is too large
Load Diff
6707
libstdc++-v3/ChangeLog-2004
Normal file
6707
libstdc++-v3/ChangeLog-2004
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
// 1999-07-26 bkoz
|
||||
|
||||
// Copyright (C) 1999, 2003 Free Software Foundation
|
||||
// Copyright (C) 1999, 2003, 2005 Free Software Foundation
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -41,8 +41,9 @@ void test01()
|
||||
|
||||
// template<_CharT, _Traits>
|
||||
// basic_istream& operator>>(istream&, _CharT*)
|
||||
int n = 20;
|
||||
const int n = 20;
|
||||
char array1[n];
|
||||
array1[0] = '\0';
|
||||
typedef std::ios::traits_type ctraits_type;
|
||||
ctraits_type::int_type i1, i2;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2004 Free Software Foundation
|
||||
// Copyright (C) 2004, 2005 Free Software Foundation
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -39,8 +39,9 @@ void test01()
|
||||
|
||||
// template<_CharT, _Traits>
|
||||
// basic_istream& operator>>(istream&, _CharT*)
|
||||
int n = 20;
|
||||
const int n = 20;
|
||||
wchar_t array1[n];
|
||||
array1[0] = L'\0';
|
||||
typedef std::wios::traits_type ctraits_type;
|
||||
ctraits_type::int_type i1, i2;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user