2009-06-02 17:52:33 +00:00
|
|
|
; RUN: llvm-as < %s > %t.out1.bc
|
2009-10-14 17:57:32 +00:00
|
|
|
; RUN: echo "%M = type i32" | llvm-as > %t.out2.bc
|
2009-06-02 17:52:33 +00:00
|
|
|
; RUN: llvm-link %t.out2.bc %t.out1.bc
|
|
|
|
|
2009-10-14 17:57:32 +00:00
|
|
|
%M = type opaque
|
2009-06-02 17:52:33 +00:00
|
|
|
|
|
|
|
define void @foo(i32* %V) {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2009-10-14 17:57:32 +00:00
|
|
|
declare void @foo.upgrd.1(%M*)
|
2009-06-02 17:52:33 +00:00
|
|
|
|
|
|
|
define void @other() {
|
2009-10-14 17:57:32 +00:00
|
|
|
call void @foo.upgrd.1( %M* null )
|
2009-06-02 17:52:33 +00:00
|
|
|
call void @foo( i32* null )
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|