New test for varargs functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-07-25 22:49:12 +00:00
parent 0c4897e5c5
commit c628b1790d

View File

@ -0,0 +1,12 @@
implementation
declare int "printf"(sbyte*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
int "testvarar"()
begin
cast int 0 to sbyte*
call int(sbyte*, ...) %printf(sbyte * %0, int 12, sbyte 42);
ret int %0
end