diff options
Diffstat (limited to 'libstdc++-v3/testsuite')
28 files changed, 89 insertions, 179 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/40160.cc b/libstdc++-v3/testsuite/21_strings/basic_string/40160.cc index 5a746f13dbc..ec82d474c36 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/40160.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/40160.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +// NB: This issue affected only debug-mode. + // { dg-options "-fno-rtti" } // { dg-do compile } diff --git a/libstdc++-v3/testsuite/23_containers/bitset/18604.cc b/libstdc++-v3/testsuite/23_containers/bitset/18604.cc index 5998751c554..f0c06aa623b 100644 --- a/libstdc++-v3/testsuite/23_containers/bitset/18604.cc +++ b/libstdc++-v3/testsuite/23_containers/bitset/18604.cc @@ -1,6 +1,7 @@ // 2005-05-09 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,7 +18,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/18604 diff --git a/libstdc++-v3/testsuite/23_containers/deque/14340.cc b/libstdc++-v3/testsuite/23_containers/deque/14340.cc index f35596ef61d..b3f7ca5dce5 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -21,7 +22,8 @@ #include <testsuite_hooks.h> #include <deque> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/deque/18604.cc b/libstdc++-v3/testsuite/23_containers/deque/18604.cc index 4bc60d1b708..69e49e0855f 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/18604.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/18604.cc @@ -1,6 +1,7 @@ // 2005-05-09 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,7 +18,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/18604 diff --git a/libstdc++-v3/testsuite/23_containers/list/14340.cc b/libstdc++-v3/testsuite/23_containers/list/14340.cc index 26b5df6d059..5606ff04221 100644 --- a/libstdc++-v3/testsuite/23_containers/list/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/list/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,11 +18,11 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <testsuite_hooks.h> #include <list> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/list/18604.cc b/libstdc++-v3/testsuite/23_containers/list/18604.cc index 231732da0da..398d0f6cd68 100644 --- a/libstdc++-v3/testsuite/23_containers/list/18604.cc +++ b/libstdc++-v3/testsuite/23_containers/list/18604.cc @@ -1,6 +1,7 @@ // 2005-05-09 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,7 +18,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/18604 diff --git a/libstdc++-v3/testsuite/23_containers/list/operations/35969.cc b/libstdc++-v3/testsuite/23_containers/list/operations/35969.cc index 5a47eca3bb1..2442f96015f 100644 --- a/libstdc++-v3/testsuite/23_containers/list/operations/35969.cc +++ b/libstdc++-v3/testsuite/23_containers/list/operations/35969.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2010 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 @@ -17,7 +17,7 @@ // 23.2.2.4 list operations [lib.list.ops] -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. #include <list> #include <functional> diff --git a/libstdc++-v3/testsuite/23_containers/map/14340.cc b/libstdc++-v3/testsuite/23_containers/map/14340.cc index 8ffb60a0f98..1ee9fc1c92b 100644 --- a/libstdc++-v3/testsuite/23_containers/map/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/map/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,11 +18,11 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <testsuite_hooks.h> #include <map> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/map/18604.cc b/libstdc++-v3/testsuite/23_containers/map/18604.cc index 01651d03790..ba1b06485a7 100644 --- a/libstdc++-v3/testsuite/23_containers/map/18604.cc +++ b/libstdc++-v3/testsuite/23_containers/map/18604.cc @@ -1,6 +1,7 @@ // 2005-05-09 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,7 +18,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/18604 diff --git a/libstdc++-v3/testsuite/23_containers/multimap/14340.cc b/libstdc++-v3/testsuite/23_containers/multimap/14340.cc index 4c30ea6bb5b..431a4731456 100644 --- a/libstdc++-v3/testsuite/23_containers/multimap/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/multimap/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,11 +18,11 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <testsuite_hooks.h> #include <map> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/multiset/14340.cc b/libstdc++-v3/testsuite/23_containers/multiset/14340.cc index fb7f9e50622..cbc29e91453 100644 --- a/libstdc++-v3/testsuite/23_containers/multiset/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/multiset/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,11 +18,11 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <testsuite_hooks.h> #include <set> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/set/14340.cc b/libstdc++-v3/testsuite/23_containers/set/14340.cc index f035c6bed8d..8539544e634 100644 --- a/libstdc++-v3/testsuite/23_containers/set/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/set/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,11 +18,11 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <testsuite_hooks.h> #include <set> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/set/18604.cc b/libstdc++-v3/testsuite/23_containers/set/18604.cc index 9ae550ebb9f..a57f95f4bdf 100644 --- a/libstdc++-v3/testsuite/23_containers/set/18604.cc +++ b/libstdc++-v3/testsuite/23_containers/set/18604.cc @@ -1,6 +1,7 @@ // 2005-05-09 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,7 +18,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/18604 diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/debug_mode.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/debug_mode.cc index b12f14fd6bd..8b2fe14caa8 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/debug_mode.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/debug_mode.cc @@ -1,7 +1,9 @@ -// { dg-options "-std=gnu++0x -D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + +// { dg-options "-std=gnu++0x" } // { dg-do compile } -// Copyright (C) 2007, 2009 Free Software Foundation, Inc. +// Copyright (C) 2007, 2008, 2009, 2010 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 @@ -18,7 +20,6 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <unordered_map> //PR libstdc++/35922 diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/explicit_instantiation/2.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/explicit_instantiation/2.cc index 851790824e8..7f4e0513830 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/explicit_instantiation/2.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/explicit_instantiation/2.cc @@ -1,7 +1,7 @@ // { dg-options "-std=gnu++0x" } // { dg-do compile } -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 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 @@ -26,4 +26,7 @@ typedef __gnu_test::NonDefaultConstructible inst_type; typedef __gnu_test::NonDefaultConstructible_hash hash_type; -template class std::unordered_map<inst_type, inst_type, hash_type>; + +// N.B. We cannot instantiate with mapped_type == NonDefaultConstructible +// because of 23.5.1.2. +template class std::unordered_map<inst_type, double, hash_type>; diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/requirements/debug_mode.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/requirements/debug_mode.cc index f0085fe6c26..206b7043716 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_set/requirements/debug_mode.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_set/requirements/debug_mode.cc @@ -1,7 +1,9 @@ -// { dg-options "-std=gnu++0x -D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + +// { dg-options "-std=gnu++0x" } // { dg-do compile } -// Copyright (C) 2007, 2009 Free Software Foundation, Inc. +// Copyright (C) 2007, 2008, 2009, 2010 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 @@ -18,7 +20,6 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <unordered_set> //PR libstdc++/35922 diff --git a/libstdc++-v3/testsuite/23_containers/vector/14340.cc b/libstdc++-v3/testsuite/23_containers/vector/14340.cc index 6250dd8f35e..0d4e45df9a9 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/14340.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/14340.cc @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,11 +18,11 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. - #include <testsuite_hooks.h> #include <vector> -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/14340 diff --git a/libstdc++-v3/testsuite/23_containers/vector/15523.cc b/libstdc++-v3/testsuite/23_containers/vector/15523.cc index 3b8230cd560..c5f48948378 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/15523.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/15523.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 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 @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. #include <vector> diff --git a/libstdc++-v3/testsuite/23_containers/vector/18604.cc b/libstdc++-v3/testsuite/23_containers/vector/18604.cc index 279d9e3587c..6ebd30833c5 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/18604.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/18604.cc @@ -1,6 +1,7 @@ // 2005-05-09 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 +// 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 @@ -17,7 +18,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/18604 diff --git a/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-1.cc b/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-1.cc index 6bf33184ac1..3f65119a7a9 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-1.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-1.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2010 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 @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. #include <vector> #include <algorithm> diff --git a/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-2.cc b/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-2.cc index 605dc05c831..56bc1090936 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-2.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-2.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2010 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 @@ -15,7 +15,9 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC" } +// NB: This issue affected only debug-mode, in pedantic mode. + +// { dg-options "-D_GLIBCXX_DEBUG_PEDANTIC" } #include <vector> #include <algorithm> diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/33613.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/33613.cc index 9e4c11600da..1358b4d9f74 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/33613.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/33613.cc @@ -1,6 +1,6 @@ // 2007-10-02 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2007, 2009 Free Software Foundation, Inc. +// Copyright (C) 2007, 2008, 2009, 2010 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 @@ -17,7 +17,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/33613 diff --git a/libstdc++-v3/testsuite/25_algorithms/set_difference/35541.cc b/libstdc++-v3/testsuite/25_algorithms/set_difference/35541.cc index 8175d7f619f..b78f3260d1b 100644 --- a/libstdc++-v3/testsuite/25_algorithms/set_difference/35541.cc +++ b/libstdc++-v3/testsuite/25_algorithms/set_difference/35541.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2010 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 @@ -15,7 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/35541 diff --git a/libstdc++-v3/testsuite/25_algorithms/set_intersection/34730.cc b/libstdc++-v3/testsuite/25_algorithms/set_intersection/34730.cc index 99828a84746..e9da465bc7f 100644 --- a/libstdc++-v3/testsuite/25_algorithms/set_intersection/34730.cc +++ b/libstdc++-v3/testsuite/25_algorithms/set_intersection/34730.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2010 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 @@ -15,7 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/34730 diff --git a/libstdc++-v3/testsuite/25_algorithms/upper_bound/33613.cc b/libstdc++-v3/testsuite/25_algorithms/upper_bound/33613.cc index d733c3d2536..3a106938c90 100644 --- a/libstdc++-v3/testsuite/25_algorithms/upper_bound/33613.cc +++ b/libstdc++-v3/testsuite/25_algorithms/upper_bound/33613.cc @@ -1,6 +1,6 @@ // 2007-10-02 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2007, 2009 Free Software Foundation, Inc. +// Copyright (C) 2007, 2008, 2009, 2010 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 @@ -17,7 +17,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-D_GLIBCXX_DEBUG" } +// NB: This issue affected only debug-mode. + // { dg-do compile } // libstdc++/33613 diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms_neg.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms_neg.cc deleted file mode 100644 index e462d686298..00000000000 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms_neg.cc +++ /dev/null @@ -1,41 +0,0 @@ -// -// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> -// -// Copyright (C) 2008, 2009 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -// { dg-do run { xfail *-*-* } } -// { dg-options "-std=c++0x -D_GLIBCXX_DEBUG" } -// { dg-require-cstdint "" } - -// 26.4.8.1.1 Class template uniform_int_distribution [rand.dist_uni] -// 26.4.2.4 Concept RandomNumberDistribution [rand.concept.dist] - -#include <random> -#include <testsuite_hooks.h> - -void -test01() -{ - std::uniform_int_distribution<int> u(20, 1); -} - -int main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms_neg.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms_neg.cc deleted file mode 100644 index a5c76d6ec7a..00000000000 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms_neg.cc +++ /dev/null @@ -1,41 +0,0 @@ -// -// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> -// -// Copyright (C) 2008, 2009 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -// { dg-do run { xfail *-*-* } } -// { dg-options "-std=c++0x -D_GLIBCXX_DEBUG" } -// { dg-require-cstdint "" } - -// 26.4.8.1.1 Class template uniform_real_distribution [rand.dist_uni] -// 26.4.2.4 Concept RandomNumberDistribution [rand.concept.dist] - -#include <random> -#include <testsuite_hooks.h> - -void -test01() -{ - std::uniform_real_distribution<double> u(5.0, 0.0); -} - -int main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/uniform_int/cons/range_neg.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/uniform_int/cons/range_neg.cc deleted file mode 100644 index 280544d599d..00000000000 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/uniform_int/cons/range_neg.cc +++ /dev/null @@ -1,41 +0,0 @@ -// 2006-06-04 Stephen M. Webb <stephen.webb@bregmasoft.com> -// -// Copyright (C) 2006, 2009 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -// { dg-do run { xfail *-*-* } } -// { dg-options "-D_GLIBCXX_DEBUG" } - -// 5.1.7.1 class template uniform_int -// 5.1.7.1 [2] constructors and member functions - -#include <tr1/random> -#include <testsuite_hooks.h> - -void -test01() -{ - using namespace std::tr1; - - uniform_int<int> u(20, 1); -} - -int main() -{ - test01(); - return 0; -} |