Merging r261384:
[oota-llvm.git] / test / Linker / 2003-11-18-TypeResolution.ll
index 946c6a268fd193e5fa4df3d983054f955d40913f..e7b15fa6b59f43cdf4985fe3480ce7112c63e73c 100644 (file)
@@ -5,18 +5,15 @@
 ; own.
 
 ; RUN: llvm-as < %s > %t.out2.bc
-; RUN: echo "%T1 = type opaque  %GVar = external global %T1*" | llvm-as > %t.out1.bc
-; RUN: llvm-link %t.out[12].bc
+; RUN: echo "%%T1 = type opaque  @GVar = external global %%T1*" | llvm-as > %t.out1.bc
+; RUN: llvm-link %t.out1.bc %t.out2.bc
 
-       %T1 = type opaque
-       %T2 = type int
+%T1 = type opaque
+%T2 = type i32
+@GVar = global i32* null               ; <i32**> [#uses=0]
 
-%GVar = global %T2 * null
-
-implementation
-
-void %foo(%T2 * %X) {
-       %X = cast %T2* %X to %T1 *
+define void @foo(i32* %X) {
+       %X.upgrd.1 = bitcast i32* %X to %T1*            ; <%T1*> [#uses=0]
        ret void
 }