blob: 47a3f9c96c0e918fa42f7693a8a8ca76dd98db1e [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@.LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1]
Chris Lattner657882c2002-08-15 17:04:40 +00005
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00006define i8* @test() {
7; <label>:0
Chris Lattner657882c2002-08-15 17:04:40 +00008 br label %BB1
9
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000010BB1: ; preds = %BB2, %0
David Blaikie5a70dd12015-03-13 18:20:45 +000011 %ret = phi i8* [ getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0), %0 ], [ null, %BB2 ] ; <i8*> [#uses=1]
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000012 ret i8* %ret
Chris Lattner657882c2002-08-15 17:04:40 +000013
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000014BB2: ; No predecessors!
Chris Lattner657882c2002-08-15 17:04:40 +000015 br label %BB1
16}
17