Author: Timm Baeder
Date: 2026-07-29T10:39:34+02:00
New Revision: 17df4290daed63acd8171af570fa8b6190d758f0

URL: 
https://github.com/llvm/llvm-project/commit/17df4290daed63acd8171af570fa8b6190d758f0
DIFF: 
https://github.com/llvm/llvm-project/commit/17df4290daed63acd8171af570fa8b6190d758f0.diff

LOG: [clang][bytecode][NFC] Add CHECK markers for functions in test (#212699)

We aren't testing the existence of the function in the output here, but
without these markers, debugging test failures here can become very
cumbersome.

Added: 
    

Modified: 
    clang/test/AST/ByteCode/builtin-object-size-codegen.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/ByteCode/builtin-object-size-codegen.cpp 
b/clang/test/AST/ByteCode/builtin-object-size-codegen.cpp
index a8071764219c5..7a7ac26c1b0be 100644
--- a/clang/test/AST/ByteCode/builtin-object-size-codegen.cpp
+++ b/clang/test/AST/ByteCode/builtin-object-size-codegen.cpp
@@ -1,6 +1,7 @@
 // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -triple 
x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
 // RUN: %clang_cc1                                         -triple 
x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
 
+// CHECK-LABEL: @_Z3foov
 void foo() {
   struct A { char buf[16]; };
   struct B : A {};
@@ -21,7 +22,7 @@ void foo() {
   gi = __builtin_object_size(&c2.bs[0], 1);
 }
 
-
+// CHECK-LABEL: @_Z4foo2v
 void foo2() {
   struct A { int a; };
   struct B { int b; };
@@ -50,12 +51,13 @@ typedef struct {
   double c[0];
   float f;
 } foofoo0_t;
-
+// CHECK-LABEL: @_Z6babar0P9foofoo0_t
 unsigned babar0(foofoo0_t *f) {
   // CHECK: ret i32 0
   return __builtin_object_size(f->c, 1);
 }
 
+// CHECK-LABEL: @_Z5test2v
 void test2() {
   struct A { char buf[16]; };
   struct B : A {};
@@ -90,6 +92,7 @@ void test2() {
   gi = __builtin_object_size(&c->bs[0].buf[0], 3);
 }
 
+// CHECK-LABEL: @_Z5test3v
 void test3() {
   struct A {
     int a;
@@ -110,12 +113,14 @@ void test3() {
 struct A { char buf[16]; };
 struct B : A {};
 struct C { int i; B bs[1]; } *c;
+// CHECK-LABEL: @_Z13globalPointerv
 void globalPointer() {
   int gi;
   // CHECK: call i64 @llvm.objectsize.i64.p0(ptr %{{.*}}, i1 true, i1 true, i1 
false)
   gi = __builtin_object_size(&c->bs[0], 2);
 }
 
+// CHECK-LABEL: @_Z11nonPtrParam1C
 void nonPtrParam(C c) {
   int gi;
   // CHECK: store i32 16


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

Reply via email to