// 1999-06-08 bkoz
-// Copyright (C) 1999, 2003, 2009 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 <stdexcept>
#include <testsuite_hooks.h>
-bool test01(void)
+void test01(void)
{
- bool test __attribute__((unused)) = true;
typedef std::wstring::size_type csize_type;
typedef std::wstring::const_reference cref;
typedef std::wstring::reference ref;
cref cref3 = str01.at(csz01 - 1);
VERIFY( cref3 == L'a' );
try {
- str01.at(csz01);
+ (void) str01.at(csz01);
VERIFY( false ); // Should not get here, as exception thrown.
}
catch(std::out_of_range& fail) {
ref ref3 = str02.at(csz02 - 1);
VERIFY( ref3 == L'a' );
try {
- str02.at(csz02);
+ (void) str02.at(csz02);
VERIFY( false ); // Should not get here, as exception thrown.
}
catch(std::out_of_range& fail) {
catch(...) {
VERIFY( false );
}
- return test;
}
int main()