blob: 68cb36414c438c99a1600555bb453641a1f44bee [file] [log] [blame]
Reid Spencer50006ba2007-01-16 18:08:22 +00001; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5implementation
6
Reid Spencerce380562007-01-26 08:25:06 +00007declare i31 @"printf"(i8*, ...) ;; Prototype for: i32 __builtin_printf(const char*, ...)
Reid Spencer50006ba2007-01-16 18:08:22 +00008
Reid Spencerce380562007-01-26 08:25:06 +00009define i31 @"testvarar"()
Reid Spencer50006ba2007-01-16 18:08:22 +000010begin
Reid Spencerce380562007-01-26 08:25:06 +000011 call i31(i8*, ...) *@printf(i8 * null, i31 12, i8 42);
Reid Spencer7953b682007-03-19 18:27:35 +000012 ret i31 %1
Reid Spencer50006ba2007-01-16 18:08:22 +000013end
14
15