[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 27 21:06:59 PDT 2025
================
@@ -0,0 +1,15 @@
+// RUN: not %clang_cc1 -std=c++20 -fsyntax-only %s 2>&1 \
+// RUN: | FileCheck %s --implicit-check-not='Assertion `NumElements.isPositive()` failed'
+
----------------
tbaederr wrote:
You don't use `FileCheck` for these kinds of tests, use `-verify`.
https://github.com/llvm/llvm-project/pull/155737
More information about the cfe-commits
mailing list