[clang] [Clang] Add additional tests for constexpr initialization (PR #181965)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 20:50:49 PST 2026
================
@@ -313,6 +313,12 @@ constexpr int *V84 = 42;
constexpr int *V85 = nullptr;
constexpr int *V91 = 0.;
// both-error at -1 {{initializing 'int *const' with an expression of incompatible type 'double'}}
+constexpr int *V92 = 0.0f;
----------------
tbaederr wrote:
> BTW, @tbaederr , I don't have any context but test/AST/ByteCode/constexpr.c looks suspiciously similar to Sema/constexpr.c . Given that Sema/constexpr.c also runs the new interpreter now, can we remove test/AST/ByteCode/constexpr.c ?
Yes, looks like it.
https://github.com/llvm/llvm-project/pull/181965
More information about the cfe-commits
mailing list