2007-01-17 02:08:22 +08:00
|
|
|
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
|
|
|
|
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
|
|
|
|
; RUN: diff %t1.ll %t2.ll
|
|
|
|
|
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
declare i31 @"printf"(i8*, ...) ;; Prototype for: i32 __builtin_printf(const char*, ...)
|
2007-01-17 02:08:22 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
define i31 @"testvarar"()
|
2007-01-17 02:08:22 +08:00
|
|
|
begin
|
2010-01-06 01:55:26 +08:00
|
|
|
call i31(i8*, ...) *@printf(i8 * null, i31 12, i8 42)
|
2007-03-20 02:27:35 +08:00
|
|
|
ret i31 %1
|
2007-01-17 02:08:22 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|