summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/hana/test/issues/clang_20046.cpp
blob: 7dc68742bd5f8da44ce735f100d81ab70315e6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)

#include <boost/hana/type.hpp>
namespace hana = boost::hana;


template <typename ...> struct F { struct type; };
struct M { template <typename ...> struct apply { struct type; }; };
struct T;

int main() {
    // See http://llvm.org/bugs/show_bug.cgi?id=20046
    [](auto) { return hana::trait<F>; }(1);
    [](auto) { return hana::type_c<T>; }(1);
    [](auto) { return hana::template_<F>; }(1);
    [](auto) { return hana::metafunction<F>; }(1);
    [](auto) { return hana::metafunction_class<M>; }(1);
}