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// <utility>
11
12// template <class T1, class T2> struct pair
13
14// constexpr pair();
15
16#include <utility>
17#include <cassert>
18
19int main()
20{
21    {
22    typedef std::pair<float, short*> P;
23    P p;
24    assert(p.first == 0.0f);
25    assert(p.second == nullptr);
26    }
27
28#if _LIBCPP_STD_VER > 11
29    {
30    typedef std::pair<float, short*> P;
31    constexpr P p;
32    static_assert(p.first == 0.0f, "");
33    static_assert(p.second == nullptr, "");
34    }
35#endif
36}
37