bolt/deps/llvm-18.1.8/clang/test/SemaCXX/pr62174.cpp
2025-02-14 19:21:04 +01:00

16 lines
324 B
C++

// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
// expected-no-diagnostics
namespace lib {
namespace impl {
template <class>
inline constexpr bool test = false;
}
using impl::test;
}
struct foo {};
template <>
inline constexpr bool lib::test<foo> = true;
static_assert(lib::test<foo>);