aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/extern_weak.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/extern_weak.ll')
-rw-r--r--test/CodeGen/X86/extern_weak.ll16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/CodeGen/X86/extern_weak.ll b/test/CodeGen/X86/extern_weak.ll
index df05b97a3b..0cc56302b7 100644
--- a/test/CodeGen/X86/extern_weak.ll
+++ b/test/CodeGen/X86/extern_weak.ll
@@ -1,11 +1,13 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=i686-apple-darwin | grep weak_reference | count 2
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | grep weak_reference | count 2
-%Y = global int (sbyte*)* %X
-declare extern_weak int %X(sbyte*)
+@Y = global i32 (i8*)* @X ; <i32 (i8*)**> [#uses=0]
-void %bar() {
- tail call void (...)* %foo( )
- ret void
+declare extern_weak i32 @X(i8*)
+
+define void @bar() {
+ tail call void (...)* @foo( )
+ ret void
}
-declare extern_weak void %foo(...)
+declare extern_weak void @foo(...)
+