blob: 705423f973cfba102188ef71bec6de75442920f7 [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00003@.str_1 = internal constant [7 x i8] c"hello\0A\00" ; <[7 x i8]*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00005declare i32 @printf(i8*, ...)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00007define i32 @main() {
8 %s = getelementptr [7 x i8]* @.str_1, i64 0, i64 0 ; <i8*> [#uses=1]
9 call i32 (i8*, ...)* @printf( i8* %s ) ; <i32>:1 [#uses=0]
10 ret i32 0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}