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 05:29:38 +00:00
|
|
|
|
2009-09-05 12:38:35 +00:00
|
|
|
%M = type opaque
|
2003-08-29 05:29:38 +00:00
|
|
|
|
|
|
|
; GLobal using the resolved function prototype
|
2009-09-05 12:38:35 +00:00
|
|
|
global void (%M*)* @foo ; <void (%M*)**>:0 [#uses=0]
|
2003-08-29 05:29:38 +00:00
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define void @foo.upgrd.1(i32* %V) {
|
|
|
|
ret void
|
2003-08-29 05:29:38 +00:00
|
|
|
}
|
|
|
|
|
2009-09-05 12:38:35 +00:00
|
|
|
declare void @foo(%M*)
|
2003-08-29 05:29:38 +00:00
|
|
|
|