aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-23 17:31:33 +0000
committerChris Lattner <sabre@nondot.org>2003-10-23 17:31:33 +0000
commit5bdcd0315b3d276b86a11b981a114fce24c022f8 (patch)
tree85580742f69f6ed3dc961792c86c8bc110f324c7
parent37f4a4c184a7112cc783e50ee9ac146e7ebee038 (diff)
downloadllvm-5bdcd0315b3d276b86a11b981a114fce24c022f8.zip
llvm-5bdcd0315b3d276b86a11b981a114fce24c022f8.tar.gz
llvm-5bdcd0315b3d276b86a11b981a114fce24c022f8.tar.bz2
Zero arg varargs functions are legal in LLVM, but not in C.
llvm-svn: 9425
-rw-r--r--llvm/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll b/llvm/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll
new file mode 100644
index 0000000..4ba9741
--- /dev/null
+++ b/llvm/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll
@@ -0,0 +1,9 @@
+
+declare sbyte* %llvm.va_start()
+declare void %llvm.va_end(sbyte*)
+
+void %test(...) {
+ %P = call sbyte* %llvm.va_start()
+ call void %llvm.va_end(sbyte* %P)
+ ret void
+}