summaryrefslogtreecommitdiff
path: root/test/Feature/testvarargs.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-25 22:49:12 +0000
committerChris Lattner <sabre@nondot.org>2001-07-25 22:49:12 +0000
commitc628b1790dab768dd5884cab907c756c9bd1965b (patch)
tree6d881e42f277563db9d93f8b9a895c1ced0f7999 /test/Feature/testvarargs.ll
parent0c4897e5c5114ee4bca877f9ccfd884e800cf157 (diff)
downloadllvm-c628b1790dab768dd5884cab907c756c9bd1965b.tar.gz
llvm-c628b1790dab768dd5884cab907c756c9bd1965b.tar.bz2
llvm-c628b1790dab768dd5884cab907c756c9bd1965b.tar.xz
New test for varargs functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/testvarargs.ll')
-rw-r--r--test/Feature/testvarargs.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Feature/testvarargs.ll b/test/Feature/testvarargs.ll
new file mode 100644
index 0000000000..79c9000265
--- /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
+
+