2008-06-20 13:29:39 +08:00
|
|
|
; Test linking two functions with different prototypes and two globals
|
|
|
|
; in different modules.
|
2009-08-25 23:38:29 +08:00
|
|
|
; RUN: llvm-as %s -o %t.foo1.bc
|
|
|
|
; RUN: llvm-as %s -o %t.foo2.bc
|
|
|
|
; RUN: echo {define linkonce void @foo(i32 %x) { ret void }} | llvm-as -o %t.foo3.bc
|
2009-09-15 23:38:31 +08:00
|
|
|
; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S
|
|
|
|
; RUN: llvm-link %t.foo1.bc %t.foo3.bc -S
|
2008-06-20 13:29:39 +08:00
|
|
|
define linkonce void @foo() { ret void }
|