OSDN Git Service

2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jul 2003 17:12:16 +0000 (17:12 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jul 2003 17:12:16 +0000 (17:12 +0000)
* testsuite/testsuite_hooks.h: Remove list include.
(func_callback): Define as unique type, not std::list.
Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
* testsuite/libstdc++-v3.dg/dg.exp: Same.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
* testsuite/23_containers/bitset_ctor.cc:
* testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
* testsuite/18_support/numeric_limits.cc: Same.
* testsuite/21_strings/basic_string/append/char/1.cc: Same.
* testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/compare/char/1.cc: Same.
* testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
* testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
* testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
* testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
* testsuite/21_strings/basic_string/find/char/1.cc: Same.
* testsuite/21_strings/basic_string/find/char/2.cc: Same.
* testsuite/21_strings/basic_string/find/char/3.cc: Same.
* testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
* testsuite/21_strings/basic_string/insert/char/1.cc: Same.
* testsuite/21_strings/basic_string/insert/char/2.cc: Same.
* testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
* testsuite/21_strings/basic_string/operators/char/1.cc: Same.
* testsuite/21_strings/basic_string/operators/char/2.cc: Same.
* testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/replace/char/1.cc: Same.
* testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
* testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
* testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
* testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
* testsuite/21_strings/basic_string/substr/char/1.cc: Same.
* testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
* testsuite/23_containers/bitset_ctor.cc: Same.
* testsuite/23_containers/bitset_shift.cc: Same.
* testsuite/23_containers/vector_ctor.cc: Same.
* testsuite/23_containers/vector_element_access.cc: Same.
* testsuite/24_iterators/istreambuf_iterator.cc: Same.
* testsuite/24_iterators/iterator.cc: Same.
* testsuite/24_iterators/ostreambuf_iterator.cc: Same.
* testsuite/25_algorithms/lower_bound.cc: Same.
* testsuite/26_numerics/complex_inserters_extractors.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
        Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69892 138bc75d-0d04-0410-961f-82ee72b054a4

71 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/17_intro/header_ciso646.cc
libstdc++-v3/testsuite/18_support/numeric_limits.cc
libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/1.cc
libstdc++-v3/testsuite/23_containers/bitset_ctor.cc
libstdc++-v3/testsuite/23_containers/bitset_shift.cc
libstdc++-v3/testsuite/23_containers/vector_ctor.cc
libstdc++-v3/testsuite/23_containers/vector_element_access.cc
libstdc++-v3/testsuite/24_iterators/istreambuf_iterator.cc
libstdc++-v3/testsuite/24_iterators/iterator.cc
libstdc++-v3/testsuite/24_iterators/ostreambuf_iterator.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound.cc
libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc
libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp
libstdc++-v3/testsuite/testsuite_hooks.cc
libstdc++-v3/testsuite/testsuite_hooks.h
libstdc++-v3/testsuite/thread/pthread7-rope.cc

index e64b45f..03af623 100644 (file)
@@ -1,3 +1,78 @@
+2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_hooks.h: Remove list include.
+       (func_callback): Define as unique type, not std::list.
+       Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
+       * testsuite/libstdc++-v3.dg/dg.exp: Same.
+       * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
+       * testsuite/23_containers/bitset_ctor.cc: 
+       * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
+       * testsuite/18_support/numeric_limits.cc: Same.
+       * testsuite/21_strings/basic_string/append/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
+       * testsuite/21_strings/basic_string/find/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/find/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/find/char/3.cc: Same.
+       * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
+       * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc: 
+       * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
+       * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
+       * testsuite/23_containers/bitset_ctor.cc: Same.
+       * testsuite/23_containers/bitset_shift.cc: Same.
+       * testsuite/23_containers/vector_ctor.cc: Same.
+       * testsuite/23_containers/vector_element_access.cc: Same.
+       * testsuite/24_iterators/istreambuf_iterator.cc: Same.
+       * testsuite/24_iterators/iterator.cc: Same.
+       * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
+       * testsuite/25_algorithms/lower_bound.cc: Same.
+       * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
+       * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
+       * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: 
+        Same.
+       
 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
 
        * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
index 8513b08..35b1cee 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-05-20 bkoz
 
-// Copyright (C) 1999 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2003 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
@@ -86,10 +86,6 @@ bool test01()
 
 #endif
 
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
@@ -110,10 +106,6 @@ bool test02()
   VERIFY( (arg1 && arg2) == (arg1 and arg2) );
   VERIFY( (arg1 && int1) == (arg1 and int1) );
 
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index 1643625..63d9412 100644 (file)
@@ -2,7 +2,7 @@
 
 // 1999-08-23 bkoz
 
-// Copyright (C) 1999, 2001, 2002 Free Software Foundation
+// Copyright (C) 1999, 2001, 2002, 2003 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
@@ -233,11 +233,6 @@ bool test01()
   VERIFY( !obj.traps );
   VERIFY( !obj.tinyness_before );
   VERIFY( obj.round_style == std::round_toward_zero );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
@@ -281,11 +276,6 @@ bool test03()
       VERIFY( std::numeric_limits<signed long long>::digits10 == 18 );
       VERIFY( std::numeric_limits<unsigned long long>::digits10 == 19 );
     }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
@@ -302,11 +292,6 @@ bool test04()
   VERIFY( !std::numeric_limits<unsigned long>::is_iec559 );
   VERIFY( !std::numeric_limits<long long>::is_iec559 );
   VERIFY( !std::numeric_limits<unsigned long long>::is_iec559 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index a7fc70e..496a6e5 100644 (file)
@@ -150,10 +150,6 @@ bool test01(void)
   str05.append(str05.begin(), str05.begin() + str05.find('r')); 
   VERIFY( str05 ==  "point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index d69d9b6..f6002f9 100644 (file)
@@ -150,10 +150,6 @@ bool test01(void)
   str05.append(str05.begin(), str05.begin() + str05.find(L'r')); 
   VERIFY( str05 ==  L"point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 02b6b79..096f4f3 100644 (file)
@@ -59,11 +59,7 @@ test_value(int result, want_value expected)
   default:
     pass = false; //should not get here
   }
-
-#ifdef DEBUG_ASSERT
-  assert(pass);
-#endif
-  
+  VERIFY(pass);
   return 0;
 }
  
index 25f8abd..5d61519 100644 (file)
@@ -60,10 +60,7 @@ test_value(int result, want_value expected)
     pass = false; //should not get here
   }
 
-#ifdef DEBUG_ASSERT
-  assert(pass);
-#endif
-  
+  VERIFY(pass);
   return 0;
 }
  
index 069aa27..f594df7 100644 (file)
@@ -80,10 +80,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index fbfa013..d2b5831 100644 (file)
@@ -102,9 +102,6 @@ bool test01(void)
   VERIFY( str03[0] == 'x' );
 
   // need to also test for const begin/const end
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 426d0e3..1c7ee5b 100644 (file)
@@ -76,10 +76,6 @@ bool test02(void)
   std::string str13 = str12;
   *p2 = 'e';
   VERIFY( str12 != str13 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 37aec1c..e2455e6 100644 (file)
@@ -102,9 +102,7 @@ bool test01(void)
   VERIFY( str03[0] == L'x' );
 
   // need to also test for const begin/const end
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
+  VERIFY(test);
   return test;
 }
 
index b771038..0ef50cc 100644 (file)
@@ -76,10 +76,6 @@ bool test02(void)
   std::wstring str13 = str12;
   *p2 = L'e';
   VERIFY( str12 != str13 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 561053c..0f2236c 100644 (file)
@@ -84,10 +84,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.find('/');
   VERIFY( csz01 == npos );
-   
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index abc35e2..9c3e2f0 100644 (file)
@@ -83,10 +83,6 @@ bool test02(void)
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 02647cf..15d0ee2 100644 (file)
@@ -83,10 +83,6 @@ bool test03(void)
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of('S');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  VERIFY(test);
-#endif
   return test;
 }
 
index ecf3182..6ed224b 100644 (file)
@@ -84,10 +84,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.find(L'/');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 8ae592d..4635dac 100644 (file)
@@ -83,10 +83,6 @@ bool test02(void)
   csz01 = str01.find_first_of(L'z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 5d119ec..c874229 100644 (file)
@@ -83,10 +83,6 @@ bool test03(void)
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of(L'S');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  VERIFY(test);
-#endif
   return test;
 }
 
index d284395..919c871 100644 (file)
@@ -180,10 +180,6 @@ int test01(void)
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == "baker beach, san franciscorodeo beach, marin" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 80b0cee..d39bbe2 100644 (file)
@@ -73,10 +73,6 @@ int test02(void)
   str01.insert(0, str01.c_str());
   VERIFY( str01 == "Everything was beautiful, and nothing hurt"
          "Everything was beautiful, and nothing hurt");
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index d35e282..f439df9 100644 (file)
@@ -180,10 +180,6 @@ int test01(void)
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == L"baker beach, san franciscorodeo beach, marin" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 04cc454..8b1468b 100644 (file)
@@ -73,10 +73,6 @@ int test02(void)
   str01.insert(0, str01.c_str());
   VERIFY( str01 == L"Everything was beautiful, and nothing hurt"
          L"Everything was beautiful, and nothing hurt");
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 4b86232..ba92251 100644 (file)
@@ -157,10 +157,6 @@ bool test01(void)
   
   std::string hello_world;
   std::cout << hello_world;
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 55eecc1..b53ca27 100644 (file)
@@ -54,10 +54,6 @@ void test04(int size)
   VERIFY( oss.good() );
   std::string str_tmp = oss.str();
   VERIFY( str_tmp.size() == expected_size );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 5d42625..195ef9d 100644 (file)
@@ -52,10 +52,6 @@ void test06(void)
   size_type i06 = str02.capacity();
   VERIFY( i05 == i03 );
   VERIFY( i06 <= i04 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 7e6116e..07e3ce6 100644 (file)
@@ -44,10 +44,6 @@ void test07(void)
 
   VERIFY( i < 3 );
   VERIFY( static_cast<bool>(iss.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 5297958..4671800 100644 (file)
@@ -157,10 +157,6 @@ bool test01(void)
   
   std::wstring hello_world;
   std::wcout << hello_world;
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index f47d8da..fd84443 100644 (file)
@@ -54,10 +54,6 @@ void test04(int size)
   VERIFY( oss.good() );
   std::wstring str_tmp = oss.str();
   VERIFY( str_tmp.size() == expected_size );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index aedcdb2..1fa1fb0 100644 (file)
@@ -52,10 +52,6 @@ void test06(void)
   size_type i06 = str02.capacity();
   VERIFY( i05 == i03 );
   VERIFY( i06 <= i04 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 4028924..0a3775c 100644 (file)
@@ -44,10 +44,6 @@ void test07(void)
 
   VERIFY( i < 3 );
   VERIFY( static_cast<bool>(iss.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index da8b306..dec24cf 100644 (file)
@@ -41,12 +41,6 @@ int test01(void)
   // printf("2:%s\n", str1.c_str()); //str1 is gone
   const char* p2 = str1.c_str();
   return 0;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
-  return test;
 }
 
 int main()
index c41ac68..bc3351d 100644 (file)
@@ -285,11 +285,6 @@ template<class charT, class traits, class Allocator>
   str_4 = 'o' + str_4;
   str_4 = 'c' + str_4;
   VERIFY( str_4 == str_3 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return 0;
 }
 
index cd8f18b..1dec0cb 100644 (file)
@@ -41,12 +41,6 @@ int test01(void)
   // wprintf("2:%s\n", str1.c_str()); //str1 is gone
   const wchar_t* p2 = str1.c_str();
   return 0;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
-  return test;
 }
 
 int main()
index 11e63f7..d92450d 100644 (file)
@@ -285,11 +285,6 @@ template<class charT, class traits, class Allocator>
   str_4 = L'o' + str_4;
   str_4 = L'c' + str_4;
   VERIFY( str_4 == str_3 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return 0;
 }
 
index 7145d4c..d4c632b 100644 (file)
@@ -73,10 +73,6 @@ bool test01(void)
            std::find(x.rbegin(), x.rend(), 'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == "jeHelloo" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index fd0967a..19ee154 100644 (file)
@@ -73,10 +73,6 @@ bool test01(void)
            std::find(x.rbegin(), x.rend(), L'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == L"jeHelloo" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 5b9a418..ddc791b 100644 (file)
@@ -83,10 +83,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind('/');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 30e40a9..d186199 100644 (file)
@@ -41,10 +41,6 @@ bool test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of('X');
   VERIFY( pos == std::string::npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index aeb132b..3517d4d 100644 (file)
@@ -56,10 +56,6 @@ bool test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of("Xa");
   VERIFY( pos == 1 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 int main()
index 9681bf4..bfb1f91 100644 (file)
@@ -83,10 +83,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 587b19b..2f813b9 100644 (file)
@@ -41,10 +41,6 @@ bool test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of(L'X');
   VERIFY( pos == std::wstring::npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 1bfd1eb..a94da0d 100644 (file)
@@ -56,10 +56,6 @@ bool test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of(L"Xa");
   VERIFY( pos == 1 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 int main()
index be2a379..486892a 100644 (file)
@@ -66,10 +66,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 843ebb6..1a4e4f6 100644 (file)
@@ -66,10 +66,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 8dae3ad..10ec016 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-06-08 bkoz
 
-// Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2002, 2003 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
@@ -73,11 +73,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-  
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
@@ -109,11 +104,7 @@ bool test02(void)
   }
 
   VERIFY( z1.to_ulong() == 0 );
-  VERIFY( ( z1.to_string<char,char_traits<char>,allocator<char> >().empty() ) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
+  VERIFY( (z1.to_string<char,char_traits<char>,allocator<char> >().empty() ));
   return test;
 }
 
index 01fdd2f..c022ca6 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-15  Anders Widell  <awl@hem.passagen.se>
 
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003 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
@@ -99,10 +99,6 @@ test01() {
   VERIFY( do_test<511>() );
   VERIFY( do_test<513>() );
   VERIFY( do_test<997>() );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
@@ -114,10 +110,6 @@ test02()
   std::bitset<66>  b;
   b <<= 400;
   VERIFY( b.count() == 0 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 854c6a6..24b013b 100644 (file)
@@ -39,16 +39,11 @@ struct B { };
 void test01()
 {
   // 1
-  bool test = true;
   std::vector< A<B> > vec01;
   std::vector< A<B> > vec02(5);
   typedef std::vector< A<B> >::size_type size_type;
 
   vec01 = vec02;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 // 2
@@ -82,22 +77,13 @@ test03()
   std::vector<int> v5(M, 7);
   VERIFY(std::equal(v5.begin(), v5.end(), B));
   VERIFY(std::equal(B, B + M, v5.begin()));
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 // libstdc++/6513
 void test04()
 {
-  bool test = true;
   const char* c_strings[5] = { "1", "2", "3", "4", "5" };
   std::vector<std::string> strings(c_strings, c_strings + 5);
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 
index 5f5b5d2..8171715 100644 (file)
@@ -1,7 +1,7 @@
 // 2000-09-06
 // bkoz 
 
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003 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
@@ -52,11 +52,6 @@ bool test01()
     {
       VERIFY( false );
     }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-  
   return test;
 }
 
index 72758ee..2f97f89 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-06-28 bkoz
 
-// Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2001, 2003 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
@@ -133,11 +133,6 @@ bool test02(void)
       c = *++istrb_it28;
       VERIFY( c == slit01[++i] );
     }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index 7acd1ec..db8b633 100644 (file)
@@ -2,7 +2,7 @@
 // 24.3.1 Iterator traits
 // (basic_string and vector implementations)
 //
-// Copyright (C) 1999  Philip Martin
+// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation; either version 2 of the License, or 
@@ -603,9 +603,6 @@ main(int argc, char **argv)
 
    failures += test6642();
 
-#ifdef DEBUG_ASSERT
-   assert (failures == 0);
-#endif
-
+   VERIFY(failures == 0);
    return 0;
 }
index 23ddee5..6fbfe6d 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-30  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
@@ -106,11 +106,6 @@ bool test02(void)
   tmp = ostrs00.str();
   VERIFY ( tmp != str01 );
   VERIFY ( tmp != str02 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index f6bf336..a3a2305 100644 (file)
@@ -1,4 +1,5 @@
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// { dg-do compile }
+// Copyright (C) 2000, 2003 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
@@ -29,17 +30,3 @@ void bar(foo* a, foo* b, foo& x)
 {
   foo* c = std::lower_bound(a, b, x);
 }
-
-void test01()
-{
-  bool test = true;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-}
-
-int main()
-{
-  return 0;
-}
index d304aa4..9f4e96b 100644 (file)
@@ -1,7 +1,7 @@
 // 2000-02-10
 // Petter Urkedal <petter@matfys.lth.se>
 
-// Copyright (C) 2000 Free Software Foundation
+// Copyright (C) 2000, 2003 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
@@ -47,10 +47,6 @@ test_good(std::string str, R x, R y)
   VERIFY( flteq(z.real(), x) );
   VERIFY( flteq(z.imag(), y) );
   VERIFY( ch == '#' );
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return 0;
 }
 
@@ -58,12 +54,11 @@ template<typename R>
 int
 test_fail(std::string str)
 {
+  bool test = true;
   std::complex<R> z;
   std::istringstream iss(str);
   iss >> z;
-#ifdef DEBUG_ASSERT
-  assert(iss.fail() && !iss.bad());
-#endif
+  VERIFY( iss.fail() && !iss.bad() );
   return 0;
 }
 
index b2fdd26..9c3b360 100644 (file)
@@ -119,11 +119,6 @@ bool test01() {
   ss_01 >> pi;
   std::printf ("%x %x\n", pi, po);
   VERIFY( po == pi );
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 374fbd8..94136d2 100644 (file)
@@ -56,11 +56,6 @@ bool test02() {
   VERIFY( n == 20000 );
   char c = is.peek();
   VERIFY( c == 65 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 869d828..65306c4 100644 (file)
@@ -55,11 +55,6 @@ bool test03()
   istr >>  l01; // _M_in_end set completely incorrectly here.
   VERIFY( l01 == 12220101 );
   VERIFY( istr.rdstate() == std::ios_base::eofbit );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index de92bcd..206c81e 100644 (file)
@@ -70,10 +70,6 @@ void test06()
   is >> c; // EOF
   VERIFY( c == ',' );
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 118668e..6167471 100644 (file)
@@ -156,10 +156,6 @@ void test07()
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
   is.clear();
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index f849161..2a2c3cc 100644 (file)
@@ -79,11 +79,6 @@ void test08()
   is >> h2; 
   VERIFY( h2 == 2212322 );
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
-
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 37e175e..67d98d5 100644 (file)
@@ -58,10 +58,6 @@ bool test09()
    test = f1 == 2456;
    VERIFY( f2 == 0.00567 );
    VERIFY( c == '-' );
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index bc67190..de7bbf9 100644 (file)
@@ -139,11 +139,6 @@ bool test10() {
   is_05.ignore();
   is_05 >> n;
   VERIFY( n == 16 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index c7e2a9b..8c296d6 100644 (file)
@@ -107,7 +107,7 @@ proc libstdc++-v3-init { args } {
             return "untested"
         }
       set cxx [transform "g++"]
-      set cxxflags "-ggdb3 -DDEBUG_ASSERT"
+      set cxxflags "-ggdb3 -D_GLIBCXX_ASSERT"
       set includes "-I./"
     } else {
         # If we find a testsuite_flags file, we're testing in the build dir.
@@ -118,7 +118,7 @@ proc libstdc++-v3-init { args } {
             set includes [exec sh $flags_file --build-includes]
         } else {
             set cxx [transform "g++"]
-            set cxxflags "-ggdb3 -DDEBUG_ASSERT"
+            set cxxflags "-ggdb3 -D_GLIBCXX_ASSERT"
             set includes "-I${srcdir}"
         }
     }
index 0042099..aa04dd6 100644 (file)
@@ -22,7 +22,7 @@ load_lib libstdc++-v3-dg.exp
 # If a testcase doesn't have special options, use these.
 global DEFAULT_CXXFLAGS
 if ![info exists DEFAULT_CXXFLAGS] then {
-    set DEFAULT_CXXFLAGS "-DDEBUG_ASSERT"
+    set DEFAULT_CXXFLAGS "-D_GLIBCXX_ASSERT"
 }
 
 # Initialize 'dg' last or dejagnu exits with an error...
index 79d5ff3..a2ace11 100644 (file)
@@ -155,8 +155,9 @@ namespace __gnu_test
     if (res != NULL)
       {
        string preLC_ALL = res;
-       for (func_callback::const_iterator i = l.begin(); i != l.end(); ++i)
-         (*i)();
+       const func_callback::test_type* tests = l.tests();
+       for (int i = 0; i < l.size(); ++i)
+         (*tests[i])();
        string postLC_ALL= setlocale(LC_ALL, NULL);
        VERIFY( preLC_ALL == postLC_ALL );
       }
@@ -180,8 +181,9 @@ namespace __gnu_test
     const char* oldENV = getenv(env);
     if (!setenv(env, name, 1))
       {
-       for (func_callback::const_iterator i = l.begin(); i != l.end(); ++i)
-         (*i)();
+       const func_callback::test_type* tests = l.tests();
+       for (int i = 0; i < l.size(); ++i)
+         (*tests[i])();
        setenv(env, oldENV ? oldENV : "", 1);
       }
     else
index f96c0a5..6984335 100644 (file)
@@ -30,7 +30,7 @@
 
 // This file provides the following:
 //
-// 1)  VERIFY(), via DEBUG_ASSERT, from Brent Verner <brent@rcfile.org>.
+// 1)  VERIFY(), via _GLIBCXX_ASSERT, from Brent Verner <brent@rcfile.org>.
 //   This file is included in the various testsuite programs to provide
 //   #define(able) assert() behavior for debugging/testing. It may be
 //   a suitable location for other furry woodland creatures as well.
 #include <bits/c++config.h>
 #include <bits/functexcept.h>
 #include <cstddef>
-#ifdef DEBUG_ASSERT
+#ifdef _GLIBCXX_ASSERT
 # include <cassert>
 # define VERIFY(fn) assert(fn)
 #else
 # define VERIFY(fn) test &= (fn)
 #endif
-#include <list>
 #include <locale>
 #ifdef _GLIBCXX_HAVE_UNISTD_H
 # include <unistd.h>
@@ -100,8 +99,32 @@ namespace __gnu_test
   // Simple callback structure for variable numbers of tests (all with
   // same signature).  Assume all unit tests are of the signature
   // void test01(); 
-  typedef void (*test_func) (void);
-  typedef std::list<test_func> func_callback;
+  class func_callback
+  {
+  public:
+    typedef void (*test_type) (void);
+
+  private:
+    int                _M_size;
+    test_type  _M_tests[15];
+    
+  public:
+    func_callback(): _M_size(0) { };
+
+    int
+    size() const { return _M_size; }
+
+    const test_type*
+    tests() const { return _M_tests; }
+
+    void
+    push_back(test_type test)
+    {
+      _M_tests[_M_size] = test;
+      ++_M_size;
+    }
+  };
+
 
   // Run select unit tests after setting global locale.
   void 
index 12e71ef..158092d 100644 (file)
@@ -19,8 +19,8 @@
 // USA.
 
 // { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-DDEBUG_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
-// { dg-options "-DDEBUG_ASSERT -pthreads" { target *-*-solaris* } }
+// { dg-options "-D_GLIBCXX_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-options "-D_GLIBCXX_ASSERT -pthreads" { target *-*-solaris* } }
 
 #include <ext/rope>
 #include <cstring>