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}}


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to