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