[clang] 644f07c - [CIR] Use `-verify` on clang/test/CIR/CodeGen/nonzeroinit-struct.cpp (#183910)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 2 06:39:07 PST 2026
Author: Akimasa Watanuki
Date: 2026-03-02T23:39:02+09:00
New Revision: 644f07cef5dca8d7926da866a09af1e42d356e12
URL: https://github.com/llvm/llvm-project/commit/644f07cef5dca8d7926da866a09af1e42d356e12
DIFF: https://github.com/llvm/llvm-project/commit/644f07cef5dca8d7926da866a09af1e42d356e12.diff
LOG: [CIR] Use `-verify` on clang/test/CIR/CodeGen/nonzeroinit-struct.cpp (#183910)
Update clang/test/CIR/CodeGen/nonzeroinit-struct.cpp to use `-verify`
with expected CIR NYI diagnostics.
Added:
Modified:
clang/test/CIR/CodeGen/nonzeroinit-struct.cpp
Removed:
################################################################################
diff --git a/clang/test/CIR/CodeGen/nonzeroinit-struct.cpp b/clang/test/CIR/CodeGen/nonzeroinit-struct.cpp
index 76832d1805030..871a028901947 100644
--- a/clang/test/CIR/CodeGen/nonzeroinit-struct.cpp
+++ b/clang/test/CIR/CodeGen/nonzeroinit-struct.cpp
@@ -1,4 +1,4 @@
-// RUN: not %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - 2>&1 | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - -verify
struct Other {
int x;
@@ -16,4 +16,5 @@ Trivial t;
// Since the case above isn't handled yet, we want a test that verifies that
// we're failing for the right reason.
-// CHECK: error: ClangIR code gen Not Yet Implemented: tryEmitPrivateForVarInit: non-zero-initializable cxx record
+// expected-error@*:* {{ClangIR code gen Not Yet Implemented: isZeroInitializable for MemberPointerType}}
+// expected-error@*:* {{ClangIR code gen Not Yet Implemented: tryEmitPrivateForVarInit: non-zero-initializable cxx record}}
More information about the cfe-commits
mailing list