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 // <tuple>
11 
12 // template <class... Types> class tuple;
13 
14 // This is not a portable test
15 
16 #include <tuple>
17 
18 struct A {};
19 
20 struct B {};
21 
22 int main()
23 {
24     {
25         typedef std::tuple<int, A> T;
26         static_assert((sizeof(T) == sizeof(int)), "");
27     }
28     {
29         typedef std::tuple<A, int> T;
30         static_assert((sizeof(T) == sizeof(int)), "");
31     }
32     {
33         typedef std::tuple<A, int, B> T;
34         static_assert((sizeof(T) == sizeof(int)), "");
35     }
36     {
37         typedef std::tuple<A, B, int> T;
38         static_assert((sizeof(T) == sizeof(int)), "");
39     }
40     {
41         typedef std::tuple<int, A, B> T;
42         static_assert((sizeof(T) == sizeof(int)), "");
43     }
44 }
45