[clang] 536ceda - FileCheck IR output for blockaddress in new test

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 15:05:56 PST 2019


Author: Reid Kleckner
Date: 2019-12-02T15:05:50-08:00
New Revision: 536cedaecbe586ec9cf86d5102872adc27e6ea23

URL: https://github.com/llvm/llvm-project/commit/536cedaecbe586ec9cf86d5102872adc27e6ea23
DIFF: https://github.com/llvm/llvm-project/commit/536cedaecbe586ec9cf86d5102872adc27e6ea23.diff

LOG: FileCheck IR output for blockaddress in new test

Minor improvement to a test added in 1ac700cdef787383ad49a

Added: 
    

Modified: 
    clang/test/CodeGen/label-array-aggregate-init.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/label-array-aggregate-init.c b/clang/test/CodeGen/label-array-aggregate-init.c
index 6821fd355ec1..5cefd8d270c0 100644
--- a/clang/test/CodeGen/label-array-aggregate-init.c
+++ b/clang/test/CodeGen/label-array-aggregate-init.c
@@ -1,6 +1,10 @@
-// RUN: %clang -cc1 -emit-llvm %s -o /dev/null
+// RUN: %clang -cc1 -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck %s
+
+// CHECK: @constinit = private global [3 x i8*] [i8* blockaddress(@main, %L), i8* null, i8* null]
+
+void receivePtrs(void **);
 
 int main() {
 L:
-  (void)(void *[]){ &&L, 0, 0 };
+  receivePtrs((void *[]){ &&L, 0, 0 });
 }


        


More information about the cfe-commits mailing list