summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/20_util
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2011-09-16 00:41:33 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2011-09-16 00:41:33 +0000
commitfae3f4598af23b48fed264052e33d5516e31a56c (patch)
treebab2ad9f8a527f32cd95ea64e678e5970b52e1fb /libstdc++-v3/testsuite/20_util
parent867e710a8da6a9752dc3561bb890b589fc8655dc (diff)
downloadgcc-fae3f4598af23b48fed264052e33d5516e31a56c.tar.gz
tuple (make_tuple, [...]): Declare constexpr.
2011-09-15 Paolo Carlini <paolo.carlini@oracle.com> * include/std/tuple (make_tuple, forward_as_tuple): Declare constexpr. (_Tuple_impl<>::_Tuple_impl(_Tuple_impl<>&&)): Likewise. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Enable make_tuple test. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-warning line number. From-SVN: r178904
Diffstat (limited to 'libstdc++-v3/testsuite/20_util')
-rw-r--r--libstdc++-v3/testsuite/20_util/tuple/creation_functions/constexpr.cc5
-rw-r--r--libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc2
2 files changed, 1 insertions, 6 deletions
diff --git a/libstdc++-v3/testsuite/20_util/tuple/creation_functions/constexpr.cc b/libstdc++-v3/testsuite/20_util/tuple/creation_functions/constexpr.cc
index 5b816a59bbb..dcf6fe7d410 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/creation_functions/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/creation_functions/constexpr.cc
@@ -29,7 +29,6 @@ bool test __attribute__((unused)) = true;
// make_tuple
-#if 0
void
test_make_tuple()
{
@@ -43,7 +42,6 @@ test_make_tuple()
constexpr tuple_type p1 = std::make_tuple(22, 22.222, 77799);
}
}
-#endif
// get
void
@@ -77,10 +75,7 @@ test_tuple_cat()
int
main()
{
-#if 0
test_make_tuple();
-#endif
-
test_get();
test_tuple_cat();
diff --git a/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc b/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
index cb4b4a9bbd9..a3abadf4622 100644
--- a/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
@@ -51,7 +51,7 @@ main()
// { dg-warning "note" "" { target *-*-* } 485 }
// { dg-warning "note" "" { target *-*-* } 479 }
// { dg-warning "note" "" { target *-*-* } 468 }
-// { dg-warning "note" "" { target *-*-* } 840 }
+// { dg-warning "note" "" { target *-*-* } 841 }
// { dg-warning "note" "" { target *-*-* } 1056 }
// { dg-warning "note" "" { target *-*-* } 1050 }
// { dg-warning "note" "" { target *-*-* } 342 }