projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
717140a
)
FileCheck IR output for blockaddress in new test
author
Reid Kleckner
<rnk@google.com>
Mon, 2 Dec 2019 23:03:31 +0000
(15:03 -0800)
committer
Reid Kleckner
<rnk@google.com>
Mon, 2 Dec 2019 23:05:50 +0000
(15:05 -0800)
Minor improvement to a test added in
1ac700cdef787383ad49a
clang/test/CodeGen/label-array-aggregate-init.c
patch
|
blob
|
history
diff --git
a/clang/test/CodeGen/label-array-aggregate-init.c
b/clang/test/CodeGen/label-array-aggregate-init.c
index
6821fd3
..
5cefd8d
100644
(file)
--- 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 })
;
}