aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/linkage.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-11-24 09:08:18 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-11-24 09:08:18 +0000
commit5ca98fd98791947eba83a1ed3f2c8191ef7afa6c (patch)
treef5944309621cee4fe0976be6f9ac619b7ebfc4c2 /test/CodeGen/XCore/linkage.ll
parent68bcb7db193e4bc81430063148253d30a791023e (diff)
Notes
Diffstat (limited to 'test/CodeGen/XCore/linkage.ll')
-rw-r--r--test/CodeGen/XCore/linkage.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/linkage.ll b/test/CodeGen/XCore/linkage.ll
index 7a1179b7ab6e..7384fe7bcf09 100644
--- a/test/CodeGen/XCore/linkage.ll
+++ b/test/CodeGen/XCore/linkage.ll
@@ -25,9 +25,21 @@ define protected void @test_protected() {
; CHECK: .weak array
@array = weak global [2 x i32] zeroinitializer
+; CHECK: .globl ac.globound
+; CHECK: ac.globound = 2
+; CHECK: .weak ac.globound
+; CHECK: .globl ac
+; CHECK: .weak ac
+@ac = common global [2 x i32] zeroinitializer
+
+; CHECK: .globl gd
; CHECK: .weak gd
@gd = weak global i32 0
+; CHECK: .globl gc
+; CHECK: .weak gc
+@gc = common global i32 0
+
; CHECK-NOT: .hidden test_hidden_declaration
; CHECK: .weak gr