[libcxx] Mark most tuple tests UNSUPPORTED for c++03 and c++98.
Summary: No declaration for the type `tuple` is given in c++03 or c++98 modes. Mark all tests that use the actual `tuple` type as UNSUPPORTED. Reviewers: jroelofs, mclow.lists, danalbert Reviewed By: danalbert Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5956 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@229808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
59f573f670
commit
f063052fe1
@ -1,12 +0,0 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
int main()
|
||||
{
|
||||
}
|
@ -7,6 +7,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
// Tuples of smart pointers; based on bug #18350
|
||||
// auto_ptr doesn't have a copy constructor that takes a const &, but tuple does.
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
// template <class... Types> class tuple;
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
// This is not a portable test
|
||||
|
||||
#include <tuple>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class U1, class U2>
|
||||
// tuple& operator=(const pair<U1, U2>& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class... UTypes>
|
||||
// tuple& operator=(const tuple<UTypes...>& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class... UTypes>
|
||||
// tuple& operator=(tuple<UTypes...>&& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// tuple& operator=(const tuple& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// tuple& operator=(const tuple& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// tuple& operator=(tuple&& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class U1, class U2>
|
||||
// tuple& operator=(pair<U1, U2>&& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <memory>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class... UTypes>
|
||||
// explicit tuple(UTypes&&... u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
/*
|
||||
This is testing an extension whereby only Types having an explicit conversion
|
||||
from UTypes are bound by the explicit tuple constructor.
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class... UTypes>
|
||||
// explicit tuple(UTypes&&... u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
#include <type_traits>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc>
|
||||
// tuple(allocator_arg_t, const Alloc& a);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc, class... UTypes>
|
||||
// tuple(allocator_arg_t, const Alloc& a, UTypes&&...);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc>
|
||||
// tuple(allocator_arg_t, const Alloc& a, const Types&...);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc, class U1, class U2>
|
||||
// tuple(allocator_arg_t, const Alloc& a, const pair<U1, U2>&);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc, class... UTypes>
|
||||
// tuple(allocator_arg_t, const Alloc& a, const tuple<UTypes...>&);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc, class... UTypes>
|
||||
// tuple(allocator_arg_t, const Alloc& a, tuple<UTypes...>&&);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc>
|
||||
// tuple(allocator_arg_t, const Alloc& a, const tuple&);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc>
|
||||
// tuple(allocator_arg_t, const Alloc& a, tuple&&);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class Alloc, class U1, class U2>
|
||||
// tuple(allocator_arg_t, const Alloc& a, pair<U1, U2>&&);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <memory>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// explicit tuple(const T&...);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// explicit tuple(const T&...);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// explicit tuple(const T&...);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// template <class U1, class U2> tuple(const pair<U1, U2>& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// template <class... UTypes> tuple(const tuple<UTypes...>& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// template <class... UTypes> tuple(tuple<UTypes...>&& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// tuple(const tuple& u) = default;
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// tuple(const tuple& u) = default;
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// constexpr tuple();
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// tuple(tuple&& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// template <class U1, class U2> tuple(pair<U1, U2>&& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <memory>
|
||||
|
@ -12,6 +12,8 @@
|
||||
// template<class... Types>
|
||||
// tuple<Types&&...> forward_as_tuple(Types&&... t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template<class... Types>
|
||||
// tuple<VTypes...> make_tuple(Types&&... t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template<class... Types>
|
||||
// tuple<Types&...> tie(Types&... t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// template <class... Tuples> tuple<CTypes...> tuple_cat(Tuples&&... tpls);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <array>
|
||||
|
@ -15,6 +15,8 @@
|
||||
// typename tuple_element<I, tuple<Types...> >::type const&
|
||||
// get(const tuple<Types...>& t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -15,6 +15,8 @@
|
||||
// typename tuple_element<I, tuple<Types...> >::type const&
|
||||
// get(const tuple<Types...>& t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -15,6 +15,8 @@
|
||||
// typename tuple_element<I, tuple<Types...> >::type&
|
||||
// get(tuple<Types...>& t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -15,6 +15,8 @@
|
||||
// typename tuple_element<I, tuple<Types...> >::type&&
|
||||
// get(tuple<Types...>&& t);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <memory>
|
||||
|
@ -7,6 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <complex>
|
||||
|
@ -7,6 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <complex>
|
||||
|
@ -7,6 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <complex>
|
||||
|
@ -7,6 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <complex>
|
||||
|
@ -7,6 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
@ -18,6 +18,8 @@
|
||||
// typedef Ti type;
|
||||
// };
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
// class tuple_size<tuple<Types...>>
|
||||
// : public integral_constant<size_t, sizeof...(Types)> { };
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
// bool
|
||||
// operator==(const tuple<TTypes...>& t, const tuple<UTypes...>& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -27,6 +27,8 @@
|
||||
// bool
|
||||
// operator>=(const tuple<TTypes...>& t, const tuple<UTypes...>& u);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class... Types>
|
||||
// void swap(tuple<Types...>& x, tuple<Types...>& y);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
// void swap(tuple& rhs);
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
// template <class... Types, class Alloc>
|
||||
// struct uses_allocator<tuple<Types...>, Alloc> : true_type { };
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user