// 1999-04-12 bkoz
-// Copyright (C) 1999-2014 Free Software Foundation, Inc.
+// Copyright (C) 1999-2024 Free Software Foundation, Inc.
//
// 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
#include <locale>
#include <testsuite_hooks.h>
-bool test03()
+void test03()
{
std::stringbuf sbuf;
std::istream istr(&sbuf);
std::ostream ostr(&sbuf);
- bool test __attribute__((unused)) = true;
long l01;
ostr << "12220101";
istr >> l01; // _M_in_end set completely incorrectly here.
VERIFY( l01 == 12220101 );
VERIFY( istr.rdstate() == std::ios_base::eofbit );
- return test;
}
int main()