aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-25 22:02:01 +0000
committerChris Lattner <sabre@nondot.org>2007-02-25 22:02:01 +0000
commit876e5942bc4d17f815399d75a94ec1ff483d2610 (patch)
treeb337124c9f0d5303879831180365e076125877d7
parent183f47fb1aa30ba9a56e645c35a7d798cf7e467c (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34611 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2007-02-25-C-DotDotDot.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CFrontend/2007-02-25-C-DotDotDot.c b/test/CFrontend/2007-02-25-C-DotDotDot.c
new file mode 100644
index 0000000000..541609b7e2
--- /dev/null
+++ b/test/CFrontend/2007-02-25-C-DotDotDot.c
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | grep 'call float @foo'
+
+// Make sure the call to foo is compiled as:
+// call float @foo()
+// not
+// call float (...)* bitcast (float ()* @foo to float (...)*)( )
+
+static float foo() { return 0.0; }
+float bar() { return foo()*10.0;}
+
+