5.cc: Make buf static.

* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
	* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
	src static.

From-SVN: r94719
This commit is contained in:
Loren J. Rittle 2005-02-07 22:56:11 +00:00 committed by Loren J. Rittle
parent 231b2fccf5
commit a47add838e
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-02-07 Loren J. Rittle <ljrittle@acm.org>
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
src static.
2005-02-02 Brad Spencer <spencer@infointeractive.com>
* debug.html: Fix broken tags.

View File

@ -44,7 +44,7 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim)
{
bool test __attribute__((unused)) = true;
wchar_t buf[1000000];
static wchar_t buf[1000000];
wstring::size_type index = 0, index_new = 0;
unsigned n = 0;

View File

@ -30,10 +30,10 @@ void test01()
const unsigned max_size = 1 << 18;
wchar_t ref[max_size];
static wchar_t ref[max_size];
wmemset(ref, L'\0', max_size);
wchar_t src[max_size * 2];
static wchar_t src[max_size * 2];
wmemset(src, L'\1', max_size * 2);
for (unsigned i = 128; i <= max_size; i *= 2)