summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/weak.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/weak.ll')
-rw-r--r--test/CodeGen/X86/weak.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/X86/weak.ll b/test/CodeGen/X86/weak.ll
new file mode 100644
index 00000000000..8590e8d0001
--- /dev/null
+++ b/test/CodeGen/X86/weak.ll
@@ -0,0 +1,4 @@
+; RUN: llc < %s -march=x86
+@a = extern_weak global i32 ; <i32*> [#uses=1]
+@b = global i32* @a ; <i32**> [#uses=0]
+