2008-03-09 08:16:40 +00:00
|
|
|
; RUN: llvm-as < %s > %t.out1.bc
|
2009-09-05 12:38:35 +00:00
|
|
|
; RUN: echo "%M = 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
|
|
|
|
2009-09-05 12:38:35 +00:00
|
|
|
%M = type opaque
|
2003-08-29 04:54:23 +00:00
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define void @foo(i32* %V) {
|
|
|
|
ret void
|
2003-08-29 04:54:23 +00:00
|
|
|
}
|
|
|
|
|
2009-09-05 12:38:35 +00:00
|
|
|
declare void @foo.upgrd.1(%M*)
|
2003-08-29 04:54:23 +00:00
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define void @other() {
|
2009-09-05 12:38:35 +00:00
|
|
|
call void @foo.upgrd.1( %M* null )
|
2008-03-09 08:16:40 +00:00
|
|
|
call void @foo( i32* null )
|
2003-08-29 04:54:23 +00:00
|
|
|
ret void
|
|
|
|
}
|
2008-03-09 08:16:40 +00:00
|
|
|
|