diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-22 16:52:41 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-22 16:52:41 +0000 |
commit | 5df539a1004bc4db5c38b33ba3e219595a10ae3c (patch) | |
tree | 8f7162c2eeb96f9bef560b568c3a039187a31953 /test/SemaTemplate/partial-order.cpp | |
parent | d2e0a8dd949ab874c6d66f97106bd5c270e2fa7d (diff) |
Notes
Diffstat (limited to 'test/SemaTemplate/partial-order.cpp')
-rw-r--r-- | test/SemaTemplate/partial-order.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaTemplate/partial-order.cpp b/test/SemaTemplate/partial-order.cpp new file mode 100644 index 000000000000..0a151de39023 --- /dev/null +++ b/test/SemaTemplate/partial-order.cpp @@ -0,0 +1,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; +} |