blob: dc98a36e8779ed5ddb5cd7a9bf69cca7377c2e08 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001; RUN: llvm-as %s -o /dev/null
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Tanya Lattnere7e3f2e2004-11-06 22:07:09 +00003
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00004; Another name collision problem. Here the problem was that if a forward
Chris Lattnerdf006052002-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 Lattner6e9bcee2008-02-14 07:57:12 +00008@Var = external global i32 ; <i32*> [#uses=0]
Chris Lattnerdf006052002-03-08 19:10:09 +00009
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000010define void @foo() {
11 %Var = alloca i32 ; <i32*> [#uses=0]
Chris Lattnerdf006052002-03-08 19:10:09 +000012 ret void
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000013}