blob: 02b9ea9adb8747e7ffcd8a5e03ff856f0d39a4d7 [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@.LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1]
Chris Lattner657882c2002-08-15 17:04:40 +00004
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00005define i8* @test() {
6; <label>:0
Chris Lattner657882c2002-08-15 17:04:40 +00007 br label %BB1
8
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00009BB1: ; preds = %BB2, %0
10 %ret = phi i8* [ getelementptr ([12 x i8]* @.LC0, i64 0, i64 0), %0 ], [ null, %BB2 ] ; <i8*> [#uses=1]
11 ret i8* %ret
Chris Lattner657882c2002-08-15 17:04:40 +000012
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000013BB2: ; No predecessors!
Chris Lattner657882c2002-08-15 17:04:40 +000014 br label %BB1
15}
16