aboutsummaryrefslogtreecommitdiff
path: root/test/Linker/testlink.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/testlink.ll')
-rw-r--r--test/Linker/testlink.ll11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/Linker/testlink.ll b/test/Linker/testlink.ll
index 2e9447ddfd37..6a316a3bf846 100644
--- a/test/Linker/testlink.ll
+++ b/test/Linker/testlink.ll
@@ -32,6 +32,11 @@
; CHECK-DAG: @0 = external global i32
@0 = external global i32
+
+define i32* @use0() {
+ ret i32* @0
+}
+
; CHECK-DAG: @Inte = global i32 1
@Inte = global i32 1
@@ -43,7 +48,7 @@
; This should get renamed since there is a definition that is non-internal in
; the other module.
-; CHECK-DAG: @Intern2{{[0-9]+}} = internal constant i32 792
+; CHECK-DAG: @Intern2.{{[0-9]+}} = internal constant i32 792
@Intern2 = internal constant i32 792
@UseIntern2 = global i32* @Intern2
@@ -101,4 +106,6 @@ define void @testIntern() {
ret void
}
-declare void @VecSizeCrash(%VecSize)
+define void @VecSizeCrash(%VecSize) {
+ ret void
+}