[clang] 6bd53df - [clang][NFC][tests] dr208.c optional signext handling

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 21:07:15 PDT 2022


Author: Hubert Tong
Date: 2022-07-01T00:03:58-04:00
New Revision: 6bd53df9b6e9fffb440ee2f9020f15b61f8b39e7

URL: https://github.com/llvm/llvm-project/commit/6bd53df9b6e9fffb440ee2f9020f15b61f8b39e7
DIFF: https://github.com/llvm/llvm-project/commit/6bd53df9b6e9fffb440ee2f9020f15b61f8b39e7.diff

LOG: [clang][NFC][tests] dr208.c optional signext handling

Fixes llvm/llvm-project#56325.

Added: 
    

Modified: 
    clang/test/C/drs/dr208.c

Removed: 
    


################################################################################
diff  --git a/clang/test/C/drs/dr208.c b/clang/test/C/drs/dr208.c
index aac27e7c1ad31..67c6bc1a5b4e4 100644
--- a/clang/test/C/drs/dr208.c
+++ b/clang/test/C/drs/dr208.c
@@ -15,10 +15,10 @@ void dr208(void) {
     [0] = dr208_init(2) /* expected-warning {{initializer overrides prior initialization of this subobject}} */
   };
 
-  /* CHECK-NOT: call i32 @dr208_init(i32 noundef 0)
-     CHECK-DAG: call i32 @dr208_init(i32 noundef 1)
-     CHECK-DAG: call i32 @dr208_init(i32 noundef 2)
-     CHECK-NOT: call i32 @dr208_init(i32 noundef 0)
+  /* CHECK-NOT: call {{signext i32|i32}} @dr208_init(i32 noundef {{(signext )?}}0)
+     CHECK-DAG: call {{signext i32|i32}} @dr208_init(i32 noundef {{(signext )?}}1)
+     CHECK-DAG: call {{signext i32|i32}} @dr208_init(i32 noundef {{(signext )?}}2)
+     CHECK-NOT: call {{signext i32|i32}} @dr208_init(i32 noundef {{(signext )?}}0)
    */
 }
 


        


More information about the cfe-commits mailing list