]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/test/issues/clang_20046.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / issues / clang_20046.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
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/type.hpp>
6namespace hana = boost::hana;
7
8
9template <typename ...> struct F { struct type; };
10struct M { template <typename ...> struct apply { struct type; }; };
11struct T;
12
13int main() {
14 // See http://llvm.org/bugs/show_bug.cgi?id=20046
15 [](auto) { return hana::trait<F>; }(1);
16 [](auto) { return hana::type_c<T>; }(1);
17 [](auto) { return hana::template_<F>; }(1);
18 [](auto) { return hana::metafunction<F>; }(1);
19 [](auto) { return hana::metafunction_class<M>; }(1);
20}