summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/partial-order.cpp
blob: 0a151de3902361ca9c7de168fe43d7cf839cc0e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -std=c++1z %s -verify

// expected-no-diagnostics

namespace hana_enable_if_idiom {
  template<bool> struct A {};
  template<typename, typename = A<true>> struct B;
  template<typename T, bool N> struct B<T, A<N>> {};
  template<typename T> struct B<T, A<T::value>> {};
  struct C {
    static const bool value = true;
  };
  B<C> b;
}