tuple_array_template_depth.pass.cpp 944 B

123456789101112131415161718192021222324252627282930313233343536
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // UNSUPPORTED: c++98, c++03
  10. // <tuple>
  11. // template <class... Types> class tuple;
  12. // template <class Tuple, __tuple_convertible<Tuple, tuple> >
  13. // tuple(Tuple &&);
  14. //
  15. // template <class Tuple, __tuple_constructible<Tuple, tuple> >
  16. // tuple(Tuple &&);
  17. // This test checks that we do not evaluate __make_tuple_types
  18. // on the array.
  19. #include <array>
  20. #include <tuple>
  21. // Use 1256 to try and blow the template instantiation depth for all compilers.
  22. typedef std::array<char, 1256> array_t;
  23. typedef std::tuple<array_t> tuple_t;
  24. int main()
  25. {
  26. array_t arr;
  27. tuple_t tup(arr);
  28. }