blob: cae3cbfe79bad153b67a9a4024a545fdc3e33678 [file] [log] [blame]
Bill Wendling7ab6c762013-02-20 07:21:42 +00001; RUN: llvm-as < %s | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5@.str = private unnamed_addr constant [14 x i8] c"hello world!\0A\00", align 1
6
7define void @foo() #0 {
8entry:
David Blaikie32b845d2015-04-16 23:24:18 +00009 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i32 0, i32 0))
Bill Wendling7ab6c762013-02-20 07:21:42 +000010 ret void
11}
12
13declare i32 @printf(i8*, ...)
14
15attributes #0 = { nounwind ssp uwtable }