2008-03-09 08:16:40 +00:00
|
|
|
; RUN: llvm-as < %s > %t.out1.bc
|
|
|
|
; RUN: echo "%S = type i32" | llvm-as > %t.out2.bc
|
2007-04-15 18:11:57 +00:00
|
|
|
; RUN: llvm-link %t.out2.bc %t.out1.bc
|
2003-08-29 04:54:23 +00:00
|
|
|
|
|
|
|
%S = type opaque
|
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define void @foo(i32* %V) {
|
|
|
|
ret void
|
2003-08-29 04:54:23 +00:00
|
|
|
}
|
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
declare void @foo.upgrd.1(%S*)
|
2003-08-29 04:54:23 +00:00
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define void @other() {
|
|
|
|
call void @foo.upgrd.1( %S* null )
|
|
|
|
call void @foo( i32* null )
|
2003-08-29 04:54:23 +00:00
|
|
|
ret void
|
|
|
|
}
|
2008-03-09 08:16:40 +00:00
|
|
|
|