blob: dc98a36e8779ed5ddb5cd7a9bf69cca7377c2e08 [file] [log] [blame]
Dan Gohman0d4bbf22009-08-25 15:38:29 +00001; RUN: llvm-as %s -o /dev/null
Duncan P. N. Exon Smithc8eccd12014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Tanya Lattner32f81a52004-11-06 22:07:09 +00003
Tanya Lattner5429dbf2008-02-14 07:57:12 +00004; Another name collision problem. Here the problem was that if a forward
Chris Lattnerff74b622002-03-08 19:10:09 +00005; declaration for a method was found, that this would cause spurious conflicts
6; to be detected between locals and globals.
7;
Tanya Lattner5429dbf2008-02-14 07:57:12 +00008@Var = external global i32 ; <i32*> [#uses=0]
Chris Lattnerff74b622002-03-08 19:10:09 +00009
Tanya Lattner5429dbf2008-02-14 07:57:12 +000010define void @foo() {
11 %Var = alloca i32 ; <i32*> [#uses=0]
Chris Lattnerff74b622002-03-08 19:10:09 +000012 ret void
Tanya Lattner5429dbf2008-02-14 07:57:12 +000013}