blob: a73b7ecd7d6066f173b2001eac42686b09956f86 [file] [log] [blame]
Tanya Lattner9bc243b2008-03-01 07:38:40 +00001; RUN: llvm-as < %s | llvm-dis > %t1.ll
Tanya Lattner3f7706b2004-11-07 06:08:43 +00002; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
Chris Lattnerc628b172001-07-25 22:49:12 +00005
Tanya Lattner9bc243b2008-03-01 07:38:40 +00006declare i32 @printf(i8*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
Chris Lattnerc628b172001-07-25 22:49:12 +00007
Tanya Lattner9bc243b2008-03-01 07:38:40 +00008define i32 @testvarar() {
9 call i32 (i8*, ...)* @printf( i8* null, i32 12, i8 42 ) ; <i32>:1 [#uses=1]
10 ret i32 %1
11}
Chris Lattnerc628b172001-07-25 22:49:12 +000012