aboutsummaryrefslogtreecommitdiffstats
path: root/test/CBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-13 20:11:21 +0000
committerChris Lattner <sabre@nondot.org>2003-05-13 20:11:21 +0000
commitf3b467c2438ee12936eb77f8a81cde4f4e7d7fa4 (patch)
treebb357c534e4c368e1e660c9ec304fda4c7e86911 /test/CBackend
parenta9028e68b16b6218e1067fa7f07e89279a439be5 (diff)
downloadexternal_llvm-f3b467c2438ee12936eb77f8a81cde4f4e7d7fa4.zip
external_llvm-f3b467c2438ee12936eb77f8a81cde4f4e7d7fa4.tar.gz
external_llvm-f3b467c2438ee12936eb77f8a81cde4f4e7d7fa4.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CBackend')
-rw-r--r--test/CBackend/2003-05-13-VarArgFunction.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CBackend/2003-05-13-VarArgFunction.ll b/test/CBackend/2003-05-13-VarArgFunction.ll
new file mode 100644
index 0000000..1b2c2b8
--- /dev/null
+++ b/test/CBackend/2003-05-13-VarArgFunction.ll
@@ -0,0 +1,8 @@
+; This testcase breaks the C backend, because gcc doesn't like (...) functions
+; with no arguments at all.
+
+void %test(long %Ptr) {
+ %P = cast long %Ptr to void(...) *
+ call void(...)* %P(long %Ptr)
+ ret void
+}