blob: c6f434aff22510d111ca7e60fba25022e21e70e2 [file] [log] [blame]
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00001; RUN: llvm-as < %s -o /dev/null -f
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