blob: 1f7a4e16f8b3f62bba19c0ecaf79cd9442dcfe6e [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001; RUN: llvm-as %s -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner74bb9f52008-02-14 07:57:12 +00003; Another name collision problem. Here the problem was that if a forward
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004; declaration for a method was found, that this would cause spurious conflicts
5; to be detected between locals and globals.
6;
Tanya Lattner74bb9f52008-02-14 07:57:12 +00007@Var = external global i32 ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattner74bb9f52008-02-14 07:57:12 +00009define void @foo() {
10 %Var = alloca i32 ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011 ret void
Tanya Lattner74bb9f52008-02-14 07:57:12 +000012}