mirror of git://gcc.gnu.org/git/gcc.git
user.cfg.in: Add typeindex.
2010-11-05 Benjamin Kosnik <bkoz@redhat.com> * doc/doxygen/user.cfg.in: Add typeindex. * testsuite/util/testsuite_common_types.h (constexpr_comparison_eq_ne, constexpr_comparison_operators): New. * testsuite/20_util/duration/comparisons: Move... * testsuite/20_util/duration/comparison_operators: ...here. * testsuite/20_util/duration/comparison_operators/constexpr.cc: New. * testsuite/20_util/time_point/comparison_operators/constexpr.cc: Add. * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust line numbers. * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same. * testsuite/29_atomics/atomic/cons/assign_neg.cc: Same. * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same. From-SVN: r166392
This commit is contained in:
parent
e52a5db606
commit
cde9963161
|
|
@ -1,3 +1,20 @@
|
||||||
|
2010-11-05 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
|
* doc/doxygen/user.cfg.in: Add typeindex.
|
||||||
|
|
||||||
|
* testsuite/util/testsuite_common_types.h (constexpr_comparison_eq_ne,
|
||||||
|
constexpr_comparison_operators): New.
|
||||||
|
* testsuite/20_util/duration/comparisons: Move...
|
||||||
|
* testsuite/20_util/duration/comparison_operators: ...here.
|
||||||
|
* testsuite/20_util/duration/comparison_operators/constexpr.cc: New.
|
||||||
|
* testsuite/20_util/time_point/comparison_operators/constexpr.cc: Add.
|
||||||
|
|
||||||
|
* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust line
|
||||||
|
numbers.
|
||||||
|
* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same.
|
||||||
|
* testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
|
||||||
|
* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
|
||||||
|
|
||||||
2010-11-05 Paolo Carlini <paolo.carlini@oracle.com>
|
2010-11-05 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
* include/bits/shared_ptr.h (shared_ptr<>::__shared_ptr(),
|
* include/bits/shared_ptr.h (shared_ptr<>::__shared_ptr(),
|
||||||
|
|
|
||||||
|
|
@ -631,6 +631,7 @@ INPUT = @srcdir@/doc/doxygen/doxygroups.cc \
|
||||||
include/system_error \
|
include/system_error \
|
||||||
include/thread \
|
include/thread \
|
||||||
include/tuple \
|
include/tuple \
|
||||||
|
include/typeindex \
|
||||||
include/type_traits \
|
include/type_traits \
|
||||||
include/unordered_map \
|
include/unordered_map \
|
||||||
include/unordered_set \
|
include/unordered_set \
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// { dg-do compile }
|
||||||
|
// { dg-options "-std=gnu++0x" }
|
||||||
|
|
||||||
|
// Copyright (C) 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
|
||||||
|
// 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/>.
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
|
#include <testsuite_common_types.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
__gnu_test::constexpr_comparison_operators test;
|
||||||
|
test.operator()<std::chrono::nanoseconds>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
// { dg-do compile }
|
||||||
|
// { dg-options "-std=gnu++0x" }
|
||||||
|
|
||||||
|
// Copyright (C) 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
|
||||||
|
// 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/>.
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
|
#include <testsuite_common_types.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
using namespace std::chrono;
|
||||||
|
__gnu_test::constexpr_comparison_operators test;
|
||||||
|
test.operator()<time_point<system_clock>>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@ -28,5 +28,5 @@ int main()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// { dg-error "deleted" "" { target *-*-* } 544 }
|
// { dg-error "deleted" "" { target *-*-* } 571 }
|
||||||
// { dg-prune-output "include" }
|
// { dg-prune-output "include" }
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,5 @@ int main()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// { dg-error "deleted" "" { target *-*-* } 583 }
|
// { dg-error "deleted" "" { target *-*-* } 610 }
|
||||||
// { dg-prune-output "include" }
|
// { dg-prune-output "include" }
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,5 @@ int main()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// { dg-error "deleted" "" { target *-*-* } 544 }
|
// { dg-error "deleted" "" { target *-*-* } 571 }
|
||||||
// { dg-prune-output "include" }
|
// { dg-prune-output "include" }
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,5 @@ int main()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// { dg-error "deleted" "" { target *-*-* } 583 }
|
// { dg-error "deleted" "" { target *-*-* } 610 }
|
||||||
// { dg-prune-output "include" }
|
// { dg-prune-output "include" }
|
||||||
|
|
|
||||||
|
|
@ -462,8 +462,35 @@ namespace __gnu_test
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Generator to test standard layout
|
|
||||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||||
|
|
||||||
|
struct constexpr_comparison_eq_ne
|
||||||
|
{
|
||||||
|
template<typename _Tp1, typename _Tp2 = _Tp1>
|
||||||
|
void
|
||||||
|
operator()()
|
||||||
|
{
|
||||||
|
static_assert(_Tp1() == _Tp2(), "eq");
|
||||||
|
static_assert(!(_Tp1() != _Tp2()), "ne");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
struct constexpr_comparison_operators
|
||||||
|
{
|
||||||
|
template<typename _Tp>
|
||||||
|
void
|
||||||
|
operator()()
|
||||||
|
{
|
||||||
|
static_assert(!(_Tp() < _Tp()), "less");
|
||||||
|
static_assert(_Tp() <= _Tp(), "leq");
|
||||||
|
static_assert(!(_Tp() > _Tp()), "more");
|
||||||
|
static_assert(_Tp() >= _Tp(), "meq");
|
||||||
|
static_assert(_Tp() == _Tp(), "eq");
|
||||||
|
static_assert(!(_Tp() != _Tp()), "ne");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Generator to test standard layout
|
||||||
struct has_trivial_cons_dtor
|
struct has_trivial_cons_dtor
|
||||||
{
|
{
|
||||||
template<typename _Tp>
|
template<typename _Tp>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue