================ @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -std=c++20 -Wno-ignored-attributes -Wno-unused-value -verify %s +// expected-no-diagnostics +namespace std { +template <class T> +constexpr const T& as_const(T&) noexcept; + +// We need two declarations to see the error for some reason *shrug* ---------------- ilya-biryukov wrote:
NIT: could probably remove **shrug** https://github.com/llvm/llvm-project/pull/131997 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits