blob: 57dc517d3bb03c95c8b76df1c03c3ee6903d70f9 [file] [log] [blame]
Gabor Greifafb4e8c2008-05-20 22:07:21 +00001; RUN: llvm-as %s -o /dev/null -f
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}