1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 // template <class T1, class T2> struct pair
13 // tuple_size<pair<T1, T2> >::value
17 #include "test_macros.h"
22 typedef std::pair
<int, short> P1
;
23 static_assert((std::tuple_size
<P1
>::value
== 2), "");
26 typedef std::pair
<int, short> const P1
;
27 static_assert((std::tuple_size
<P1
>::value
== 2), "");
30 typedef std::pair
<int, short> volatile P1
;
31 static_assert((std::tuple_size
<P1
>::value
== 2), "");
34 typedef std::pair
<int, short> const volatile P1
;
35 static_assert((std::tuple_size
<P1
>::value
== 2), "");