mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 12:49:50 +00:00
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:
parent
0c4897e5c5
commit
c628b1790d
12
test/Feature/testvarargs.ll
Normal file
12
test/Feature/testvarargs.ll
Normal 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user