2
0
mirror of https://github.com/boostorg/hana.git synced 2026-01-27 19:02:12 +00:00
Files
hana/test/issues/clang_20046.cpp
2016-02-04 11:07:41 -05:00

21 lines
689 B
C++

// Copyright Louis Dionne 2013-2016
// 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);
}