Imported Upstream version 1.64.0
[platform/upstream/boost.git] / libs / hana / test / integral_constant / hashable.cpp
1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5 #include <boost/hana/integral_constant.hpp>
6 #include <boost/hana/tuple.hpp>
7
8 #include <laws/hashable.hpp>
9 namespace hana = boost::hana;
10
11
12 int main() {
13     constexpr auto ints = hana::make_tuple(
14           hana::integral_constant<char, 42>{}
15         , hana::integral_constant<signed char, 42>{}
16         , hana::integral_constant<signed short, 42>{}
17         , hana::integral_constant<signed int, 42>{}
18         , hana::integral_constant<signed long, 42>{}
19         , hana::integral_constant<unsigned char, 42>{}
20         , hana::integral_constant<unsigned short, 42>{}
21         , hana::integral_constant<unsigned int, 42>{}
22         , hana::integral_constant<unsigned long, 42>{}
23     );
24
25     hana::test::TestHashable<hana::integral_constant_tag<void>>{ints};
26 }