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 }); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits