X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FLinker%2F2003-08-23-GlobalVarLinking.ll;h=fd36d0422a69cc00a0e92a38adbb081b931c5b28;hb=56867520990a4fea1353d55f71bb74a0126554e6;hp=7b8f6b6d1e86b7c302f7d488d373a97c7104421d;hpb=2fa6c35d6946402595ad8824c7fc3ab0f736593a;p=oota-llvm.git diff --git a/test/Linker/2003-08-23-GlobalVarLinking.ll b/test/Linker/2003-08-23-GlobalVarLinking.ll index 7b8f6b6d1e8..fd36d0422a6 100644 --- a/test/Linker/2003-08-23-GlobalVarLinking.ll +++ b/test/Linker/2003-08-23-GlobalVarLinking.ll @@ -1,8 +1,10 @@ -; RUN: as < %s > Output/%s.out1.bc -; RUN: echo "%S = external global { int, opaque* }" | as > Output/%s.out2.bc -; RUN: link Output/%s.out[12].bc | dis | not grep opaque +; RUN: llvm-as < %s > %t.out1.bc +; RUN: echo {@S = external global \{ i32, opaque* \} declare void @F(opaque*)}\ +; RUN: | llvm-as > %t.out2.bc +; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | not grep opaque ; 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 } +@S = global { i32, i32* } { i32 5, i32* null } ; <{ i32, i32* }*> [#uses=0] +declare void @F(i32*)