Commit 4be2a081 by Jonathan Wakely Committed by Jonathan Wakely

default.cc: Do not call members which require a fully established result state.

2011-03-25  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/28_regex/match_results/ctors/char/default.cc: Do not call
	members which require a fully established result state.
	* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.

From-SVN: r171530
parent 02ed921a
2011-03-25 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/28_regex/match_results/ctors/char/default.cc: Do not call
members which require a fully established result state.
* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
2011-03-25 Paolo Carlini <paolo.carlini@oracle.com> 2011-03-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.h (negative_binomial_distribution<>:: * include/bits/random.h (negative_binomial_distribution<>::
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// 2009-06-10 Stephen M. Webb <stephen.webb@bregmasoft.com> // 2009-06-10 Stephen M. Webb <stephen.webb@bregmasoft.com>
// //
// Copyright (C) 2009 Free Software Foundation, Inc. // Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -29,18 +29,18 @@ void test01() ...@@ -29,18 +29,18 @@ void test01()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::cmatch cm; std::cmatch cm;
VERIFY( cm.size() == 0 ); VERIFY( cm.size() == 0 );
VERIFY( cm.str() == std::cmatch::string_type() ); VERIFY( !cm.ready() );
} }
void test02() void test02()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::smatch sm; std::smatch sm;
VERIFY( sm.size() == 0 ); VERIFY( sm.size() == 0 );
VERIFY( sm.str() == std::smatch::string_type() ); VERIFY( !sm.ready() );
} }
int int
...@@ -49,4 +49,4 @@ main() ...@@ -49,4 +49,4 @@ main()
test01(); test01();
test02(); test02();
return 0; return 0;
}; }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// 2009-06-05 Stephen M. Webb <stephen.webb@bregmasoft.com> // 2009-06-05 Stephen M. Webb <stephen.webb@bregmasoft.com>
// //
// Copyright (C) 2009 Free Software Foundation, Inc. // Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -29,18 +29,18 @@ void test01() ...@@ -29,18 +29,18 @@ void test01()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::wcmatch cm; std::wcmatch cm;
VERIFY( cm.size() == 0 ); VERIFY( cm.size() == 0 );
VERIFY( cm.str() == std::wcmatch::string_type() ); VERIFY( !cm.ready() );
} }
void test02() void test02()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::wsmatch sm; std::wsmatch sm;
VERIFY( sm.size() == 0 ); VERIFY( sm.size() == 0 );
VERIFY( sm.str() == std::wsmatch::string_type() ); VERIFY( !sm.ready() );
} }
int int
...@@ -49,4 +49,4 @@ main() ...@@ -49,4 +49,4 @@ main()
test01(); test01();
test02(); test02();
return 0; return 0;
}; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment