[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaTemplate / partial-order.cpp
blob0a151de3902361ca9c7de168fe43d7cf839cc0e4
1 // RUN: %clang_cc1 -std=c++1z %s -verify
3 // expected-no-diagnostics
5 namespace hana_enable_if_idiom {
6 template<bool> struct A {};
7 template<typename, typename = A<true>> struct B;
8 template<typename T, bool N> struct B<T, A<N>> {};
9 template<typename T> struct B<T, A<T::value>> {};
10 struct C {
11 static const bool value = true;
13 B<C> b;