aboutsummaryrefslogtreecommitdiff
path: root/test/Linker/Inputs/linkage.b.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/Inputs/linkage.b.ll')
-rw-r--r--test/Linker/Inputs/linkage.b.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/Inputs/linkage.b.ll b/test/Linker/Inputs/linkage.b.ll
new file mode 100644
index 000000000000..0ada3f4cb428
--- /dev/null
+++ b/test/Linker/Inputs/linkage.b.ll
@@ -0,0 +1,10 @@
+@X = external global i32
+
+declare i32 @foo()
+
+define void @bar() {
+ load i32* @X
+ call i32 @foo()
+ ret void
+}
+