OSDN Git Service

new testcase
authorChris Lattner <sabre@nondot.org>
Sun, 25 Feb 2007 22:02:01 +0000 (22:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 25 Feb 2007 22:02:01 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34611 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-02-25-C-DotDotDot.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-02-25-C-DotDotDot.c b/test/CFrontend/2007-02-25-C-DotDotDot.c
new file mode 100644 (file)
index 0000000..541609b
--- /dev/null
@@ -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;}
+
+