1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03
10 
11 // <tuple>
12 
13 // template <class... Types> class tuple;
14 
15 // template <class Tuple, __tuple_assignable<Tuple, tuple> >
16 //   tuple & operator=(Tuple &&);
17 
18 // This test checks that we do not evaluate __make_tuple_types
19 // on the array when it doesn't match the size of the tuple.
20 
21 #include <array>
22 #include <tuple>
23 
24 #include "test_macros.h"
25 
26 // Use 1256 to try and blow the template instantiation depth for all compilers.
27 typedef std::array<char, 1256> array_t;
28 typedef std::tuple<array_t> tuple_t;
29 
main(int,char **)30 int main(int, char**)
31 {
32     array_t arr;
33     tuple_t tup;
34     tup = arr;
35 
36   return 0;
37 }
38