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 
10 // UNSUPPORTED: c++98, c++03
11 
12 // <tuple>
13 
14 // template <class... Types> class tuple;
15 
16 // template <class Tuple, __tuple_convertible<Tuple, tuple> >
17 //   tuple(Tuple &&);
18 //
19 // template <class Tuple, __tuple_constructible<Tuple, tuple> >
20 //   tuple(Tuple &&);
21 
22 // This test checks that we do not evaluate __make_tuple_types
23 // on the array.
24 
25 #include <array>
26 #include <tuple>
27 
28 // Use 1256 to try and blow the template instantiation depth for all compilers.
29 typedef std::array<char, 1256> array_t;
30 typedef std::tuple<array_t> tuple_t;
31 
main()32 int main()
33 {
34     array_t arr;
35     tuple_t tup(arr);
36 }
37