Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaTemplate/partial-order.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// 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; }