From 876e5942bc4d17f815399d75a94ec1ff483d2610 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 25 Feb 2007 22:02:01 +0000 Subject: [PATCH] new testcase 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CFrontend/2007-02-25-C-DotDotDot.c 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 00000000000..541609b7e2c --- /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;} + + -- 2.34.1