Add a extern weak test case.
[oota-llvm.git] / test / CodeGen / X86 / extern_weak.ll
1 ; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | grep weak_reference | wc -l | grep 2
2
3 %Y = global int (sbyte*)* %X
4 declare extern_weak int %X(sbyte*)
5
6 void %bar() {
7         tail call void (...)* %foo( )
8         ret void
9 }
10
11 declare extern_weak void %foo(...)