X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FAssembler%2F2002-03-08-NameCollision2.ll;h=1f7a4e16f8b3f62bba19c0ecaf79cd9442dcfe6e;hb=4fd5cd06c815724fa410c0bea276d919dea868c3;hp=2688b54c04ed7d14b150b489a633bff2c83f07fb;hpb=e7e3f2e5cd786f6cca267210b3d185b2a4a037bd;p=oota-llvm.git diff --git a/test/Assembler/2002-03-08-NameCollision2.ll b/test/Assembler/2002-03-08-NameCollision2.ll index 2688b54c04e..1f7a4e16f8b 100644 --- a/test/Assembler/2002-03-08-NameCollision2.ll +++ b/test/Assembler/2002-03-08-NameCollision2.ll @@ -1,18 +1,12 @@ -; RUN: llvm-as < %s -o /dev/null -f +; RUN: llvm-as %s -o /dev/null -; Another name collision problem. Here the problem was that if a forward +; Another name collision problem. Here the problem was that if a forward ; declaration for a method was found, that this would cause spurious conflicts ; to be detected between locals and globals. ; -%Var = uninitialized global int +@Var = external global i32 ; [#uses=0] -declare void "foo"() - -implementation - -void "foo"() -begin - %Var = alloca int ; Conflict with global var +define void @foo() { + %Var = alloca i32 ; [#uses=0] ret void -end - +}