https://github.com/Men-cotton created https://github.com/llvm/llvm-project/pull/183910
Update clang/test/CIR/CodeGen/nonzeroinit-struct.cpp to use `-verify` with expected CIR NYI diagnostics. >From 8020400ccb9203b8533800a6f3a62da38c29905e Mon Sep 17 00:00:00 2001 From: mencotton <[email protected]> Date: Sat, 28 Feb 2026 21:43:42 +0900 Subject: [PATCH] [CIR] Use `-verify` on clang/test/CIR/CodeGen/nonzeroinit-struct.cpp --- clang/test/CIR/CodeGen/nonzeroinit-struct.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}} _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
