blob: 2dd281a4beeb2db0e2d0c5e9f1aea313f4736c18 [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc -march=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00003@testString = internal constant [18 x i8] c"Escaped newline\5Cn\00" ; <[18 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 call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8]* @testString, i64 0, i64 0) ) ; <i32>:1 [#uses=0]
9 ret i32 0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000011