brintos

brintos / llvm-project-archived public Read only

0
0
Text · 324 B · a528370 Raw
17 lines · cpp
1// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify2// expected-no-diagnostics3namespace lib {4    namespace impl {5        template <class>6        inline constexpr bool test = false;7    }8    using impl::test;9}10 11struct foo {};12 13template <>14inline constexpr bool lib::test<foo> = true;15 16static_assert(lib::test<foo>);17