[clang] [clang][bytecode] Use in `Expr::tryEvaluateString` (PR #160118)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 24 00:20:16 PDT 2025
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/160118 at github.com>
================
@@ -45,3 +48,10 @@ void f2() {
void test() {
f<constCat3, constMsg3>(nullptr);
}
+
+/// Arguments must be null terminated.
+constexpr char K[] = {'a', 'b'};
----------------
tbaederr wrote:
I added a null-terminated array test case, but I can't check that we really have the right string here.
https://github.com/llvm/llvm-project/pull/160118
More information about the cfe-commits
mailing list