list: Implement DR 1133 here too.
2010-01-03 Paolo Carlini <paolo.carlini@oracle.com> * include/profile/list: Implement DR 1133 here too. * testsuite/25_algorithms/set_intersection/34730.cc: Do not force debug-mode, leads to spurious failures in profile-mode. * testsuite/25_algorithms/upper_bound/33613.cc: Likewise. * testsuite/25_algorithms/lower_bound/33613.cc: Likewise. * testsuite/25_algorithms/set_difference/35541.cc: Likewise. * testsuite/21_strings/basic_string/40160.cc: Likewise. * testsuite/23_containers/unordered_map/requirements/debug_mode.cc: Likewise. * testsuite/23_containers/multimap/14340.cc: Likewise. * testsuite/23_containers/bitset/18604.cc: Likewise. * testsuite/23_containers/set/14340.cc: Likewise. * testsuite/23_containers/set/18604.cc: Likewise. * testsuite/23_containers/unordered_set/requirements/ debug_mode.cc: Likewise. * testsuite/23_containers/vector/ debug_mode_requires_reallocation-1.cc: Likewise. * testsuite/23_containers/vector/ debug_mode_requires_reallocation-2.cc: Likewise. * testsuite/23_containers/vector/14340.cc: Likewise. * testsuite/23_containers/vector/15523.cc: Likewise. * testsuite/23_containers/vector/18604.cc: Likewise. * testsuite/23_containers/deque/14340.cc: Likewise. * testsuite/23_containers/deque/18604.cc: Likewise. * testsuite/23_containers/multiset/14340.cc: Likewise. * testsuite/23_containers/list/operations/35969.cc: Likewise. * testsuite/23_containers/list/14340.cc: Likewise. * testsuite/23_containers/list/18604.cc: Likewise. * testsuite/23_containers/map/14340.cc: Likewise. * testsuite/23_containers/map/18604.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/ cons/parms_neg.cc: Remove, isn't testing anything. * testsuite/26_numerics/random/uniform_int_distribution/ cons/parms_neg.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/uniform_int/ cons/range_neg.cc: Likewise. * testsuite/23_containers/unordered_map/requirements/ explicit_instantiation/2.cc: Do not instantiate for non-defaultconstructible mapped_type. From-SVN: r155603
This commit is contained in:
parent
55bcd32b46
commit
ab1c1187c3
|
@ -1,3 +1,47 @@
|
|||
2010-01-03 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/profile/list: Implement DR 1133 here too.
|
||||
|
||||
* testsuite/25_algorithms/set_intersection/34730.cc: Do not force
|
||||
debug-mode, leads to spurious failures in profile-mode.
|
||||
* testsuite/25_algorithms/upper_bound/33613.cc: Likewise.
|
||||
* testsuite/25_algorithms/lower_bound/33613.cc: Likewise.
|
||||
* testsuite/25_algorithms/set_difference/35541.cc: Likewise.
|
||||
* testsuite/21_strings/basic_string/40160.cc: Likewise.
|
||||
* testsuite/26_numerics/random/uniform_real_distribution/
|
||||
cons/parms_neg.cc: Likewise.
|
||||
* testsuite/26_numerics/random/uniform_int_distribution/
|
||||
cons/parms_neg.cc: Likewise.
|
||||
* testsuite/23_containers/unordered_map/requirements/debug_mode.cc:
|
||||
Likewise.
|
||||
* testsuite/23_containers/multimap/14340.cc: Likewise.
|
||||
* testsuite/23_containers/bitset/18604.cc: Likewise.
|
||||
* testsuite/23_containers/set/14340.cc: Likewise.
|
||||
* testsuite/23_containers/set/18604.cc: Likewise.
|
||||
* testsuite/23_containers/unordered_set/requirements/
|
||||
debug_mode.cc: Likewise.
|
||||
* testsuite/23_containers/vector/
|
||||
debug_mode_requires_reallocation-1.cc: Likewise.
|
||||
* testsuite/23_containers/vector/
|
||||
debug_mode_requires_reallocation-2.cc: Likewise.
|
||||
* testsuite/23_containers/vector/14340.cc: Likewise.
|
||||
* testsuite/23_containers/vector/15523.cc: Likewise.
|
||||
* testsuite/23_containers/vector/18604.cc: Likewise.
|
||||
* testsuite/23_containers/deque/14340.cc: Likewise.
|
||||
* testsuite/23_containers/deque/18604.cc: Likewise.
|
||||
* testsuite/23_containers/multiset/14340.cc: Likewise.
|
||||
* testsuite/23_containers/list/operations/35969.cc: Likewise.
|
||||
* testsuite/23_containers/list/14340.cc: Likewise.
|
||||
* testsuite/23_containers/list/18604.cc: Likewise.
|
||||
* testsuite/23_containers/map/14340.cc: Likewise.
|
||||
* testsuite/23_containers/map/18604.cc: Likewise.
|
||||
* testsuite/tr1/5_numerical_facilities/random/uniform_int/
|
||||
cons/range_neg.cc: Likewise.
|
||||
|
||||
* testsuite/23_containers/unordered_map/requirements/
|
||||
explicit_instantiation/2.cc: Do not instantiate for
|
||||
non-defaultconstructible mapped_type.
|
||||
|
||||
2010-01-03 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/debug/set.h: Implement DR 130 here too.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Profiling list implementation -*- C++ -*-
|
||||
|
||||
// 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
|
||||
|
@ -73,7 +73,6 @@ namespace __profile
|
|||
: _Base(__first, __last, __a)
|
||||
{ }
|
||||
|
||||
|
||||
list(const list& __x)
|
||||
: _Base(__x) { }
|
||||
|
||||
|
@ -118,23 +117,17 @@ namespace __profile
|
|||
|
||||
void
|
||||
assign(initializer_list<value_type> __l)
|
||||
{
|
||||
_Base::assign(__l);
|
||||
}
|
||||
{ _Base::assign(__l); }
|
||||
#endif
|
||||
|
||||
template<class _InputIterator>
|
||||
void
|
||||
assign(_InputIterator __first, _InputIterator __last)
|
||||
{
|
||||
_Base::assign(__first, __last);
|
||||
}
|
||||
{ _Base::assign(__first, __last); }
|
||||
|
||||
void
|
||||
assign(size_type __n, const _Tp& __t)
|
||||
{
|
||||
_Base::assign(__n, __t);
|
||||
}
|
||||
{ _Base::assign(__n, __t); }
|
||||
|
||||
using _Base::get_allocator;
|
||||
|
||||
|
@ -196,34 +189,24 @@ namespace __profile
|
|||
|
||||
void
|
||||
resize(size_type __sz, _Tp __c = _Tp())
|
||||
{
|
||||
_Base::resize(__sz, __c);
|
||||
}
|
||||
{ _Base::resize(__sz, __c); }
|
||||
|
||||
// element access:
|
||||
reference
|
||||
front()
|
||||
{
|
||||
return _Base::front();
|
||||
}
|
||||
{ return _Base::front(); }
|
||||
|
||||
const_reference
|
||||
front() const
|
||||
{
|
||||
return _Base::front();
|
||||
}
|
||||
{ return _Base::front(); }
|
||||
|
||||
reference
|
||||
back()
|
||||
{
|
||||
return _Base::back();
|
||||
}
|
||||
{ return _Base::back(); }
|
||||
|
||||
const_reference
|
||||
back() const
|
||||
{
|
||||
return _Base::back();
|
||||
}
|
||||
{ return _Base::back(); }
|
||||
|
||||
// 23.2.2.3 modifiers:
|
||||
using _Base::push_front;
|
||||
|
@ -265,9 +248,7 @@ namespace __profile
|
|||
|
||||
iterator
|
||||
insert(iterator __position, const _Tp& __x)
|
||||
{
|
||||
return iterator(_Base::insert(__position, __x));
|
||||
}
|
||||
{ return iterator(_Base::insert(__position, __x)); }
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
iterator
|
||||
|
@ -276,30 +257,22 @@ namespace __profile
|
|||
|
||||
void
|
||||
insert(iterator __p, initializer_list<value_type> __l)
|
||||
{
|
||||
_Base::insert(__p, __l);
|
||||
}
|
||||
{ _Base::insert(__p, __l); }
|
||||
#endif
|
||||
|
||||
void
|
||||
insert(iterator __position, size_type __n, const _Tp& __x)
|
||||
{
|
||||
_Base::insert(__position, __n, __x);
|
||||
}
|
||||
{ _Base::insert(__position, __n, __x); }
|
||||
|
||||
template<class _InputIterator>
|
||||
void
|
||||
insert(iterator __position, _InputIterator __first,
|
||||
_InputIterator __last)
|
||||
{
|
||||
_Base::insert(__position, __first, __last);
|
||||
}
|
||||
{ _Base::insert(__position, __first, __last); }
|
||||
|
||||
iterator
|
||||
erase(iterator __position)
|
||||
{
|
||||
return iterator(_Base::erase(__position));
|
||||
}
|
||||
{ return iterator(_Base::erase(__position)); }
|
||||
|
||||
iterator
|
||||
erase(iterator __position, iterator __last)
|
||||
|
@ -311,15 +284,11 @@ namespace __profile
|
|||
|
||||
void
|
||||
swap(list& __x)
|
||||
{
|
||||
_Base::swap(__x);
|
||||
}
|
||||
{ _Base::swap(__x); }
|
||||
|
||||
void
|
||||
clear()
|
||||
{
|
||||
_Base::clear();
|
||||
}
|
||||
{ _Base::clear(); }
|
||||
|
||||
// 23.2.2.4 list operations:
|
||||
void
|
||||
|
@ -328,9 +297,13 @@ namespace __profile
|
|||
#else
|
||||
splice(iterator __position, list& __x)
|
||||
#endif
|
||||
{
|
||||
this->splice(__position, _GLIBCXX_MOVE(__x), __x.begin(), __x.end());
|
||||
}
|
||||
{ this->splice(__position, _GLIBCXX_MOVE(__x), __x.begin(), __x.end()); }
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
void
|
||||
splice(iterator __position, list& __x)
|
||||
{ this->splice(__position, std::move(__x)); }
|
||||
#endif
|
||||
|
||||
void
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
|
@ -347,6 +320,12 @@ namespace __profile
|
|||
__i);
|
||||
}
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
void
|
||||
splice(iterator __position, list& __x, iterator __i)
|
||||
{ this->splice(__position, std::move(__x), __i); }
|
||||
#endif
|
||||
|
||||
void
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
splice(iterator __position, list&& __x, iterator __first,
|
||||
|
@ -363,6 +342,12 @@ namespace __profile
|
|||
__first, __last);
|
||||
}
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
void
|
||||
splice(iterator __position, list& __x, iterator __first, iterator __last)
|
||||
{ this->splice(__position, std::move(__x), __first, __last); }
|
||||
#endif
|
||||
|
||||
void
|
||||
remove(const _Tp& __value)
|
||||
{
|
||||
|
@ -435,11 +420,15 @@ namespace __profile
|
|||
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||
// 300. list::merge() specification incomplete
|
||||
if (this != &__x)
|
||||
{
|
||||
_Base::merge(_GLIBCXX_MOVE(__x._M_base()));
|
||||
}
|
||||
_Base::merge(_GLIBCXX_MOVE(__x._M_base()));
|
||||
}
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
void
|
||||
merge(list& __x)
|
||||
{ this->merge(std::move(__x)); }
|
||||
#endif
|
||||
|
||||
template<class _Compare>
|
||||
void
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
|
@ -451,11 +440,16 @@ namespace __profile
|
|||
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||
// 300. list::merge() specification incomplete
|
||||
if (this != &__x)
|
||||
{
|
||||
_Base::merge(_GLIBCXX_MOVE(__x._M_base()), __comp);
|
||||
}
|
||||
_Base::merge(_GLIBCXX_MOVE(__x._M_base()), __comp);
|
||||
}
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
template<typename _Compare>
|
||||
void
|
||||
merge(list& __x, _Compare __comp)
|
||||
{ this->merge(std::move(__x), __comp); }
|
||||
#endif
|
||||
|
||||
void
|
||||
sort() { _Base::sort(); }
|
||||
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue