From c628b1790dab768dd5884cab907c756c9bd1965b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Jul 2001 22:49:12 +0000 Subject: [PATCH] New test for varargs functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Feature/testvarargs.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Feature/testvarargs.ll diff --git a/test/Feature/testvarargs.ll b/test/Feature/testvarargs.ll new file mode 100644 index 00000000000..79c90002655 --- /dev/null +++ b/test/Feature/testvarargs.ll @@ -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 + +