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 05:29:38 +00:00
|
|
|
|
|
|
|
%S = type opaque
|
|
|
|
|
|
|
|
; GLobal using the resolved function prototype
|
2008-03-09 08:16:40 +00:00
|
|
|
global void (%S*)* @foo ; <void (%S*)**>: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
|
|
|
}
|
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
declare void @foo(%S*)
|
2003-08-29 05:29:38 +00:00
|
|
|
|