blob: a645c84ef3e46f6b5923c71de1ab1a078c2de751 [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
Reid Spencer50006ba2007-01-16 18:08:22 +00005
Reid Spencerce380562007-01-26 08:25:06 +00006declare i31 @"printf"(i8*, ...) ;; Prototype for: i32 __builtin_printf(const char*, ...)
Reid Spencer50006ba2007-01-16 18:08:22 +00007
Reid Spencerce380562007-01-26 08:25:06 +00008define i31 @"testvarar"()
Reid Spencer50006ba2007-01-16 18:08:22 +00009begin
Reid Spencerce380562007-01-26 08:25:06 +000010 call i31(i8*, ...) *@printf(i8 * null, i31 12, i8 42);
Reid Spencer7953b682007-03-19 18:27:35 +000011 ret i31 %1
Reid Spencer50006ba2007-01-16 18:08:22 +000012end
13
14