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 000000000000..28638afd57ef
--- /dev/null
+++ b/test/CodeGen/X86/weak.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=x86
+@a = extern_weak global i32 ; <i32*> [#uses=1]
+@b = global i32* @a ; <i32**> [#uses=0]
+