2006-12-31 14:02:00 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
|
2007-04-16 02:11:57 +08:00
|
|
|
; RUN: echo {%S = external global \{ int, opaque* \} declare void %F(opaque*)}\
|
|
|
|
; RUN: | llvm-upgrade | llvm-as > %t.out2.bc
|
|
|
|
; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | not grep opaque
|
2003-08-23 23:53:38 +08:00
|
|
|
|
|
|
|
; After linking this testcase, there should be no opaque types left. The two
|
|
|
|
; S's should cause the opaque type to be resolved to 'int'.
|
|
|
|
%S = global { int, int* } { int 5, int* null }
|
|
|
|
|
2003-08-24 04:30:29 +08:00
|
|
|
declare void %F(int*)
|