[llvm-commits] CVS: llvm/test/CFrontend/2007-02-25-C-DotDotDot.c

Chris Lattner sabre at nondot.org
Sun Feb 25 14:02:18 PST 2007



Changes in directory llvm/test/CFrontend:

2007-02-25-C-DotDotDot.c added (r1.1)
---
Log message:

new testcase


---
Diffs of the changes:  (+11 -0)

 2007-02-25-C-DotDotDot.c |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/CFrontend/2007-02-25-C-DotDotDot.c
diff -c /dev/null llvm/test/CFrontend/2007-02-25-C-DotDotDot.c:1.1
*** /dev/null	Sun Feb 25 16:02:11 2007
--- llvm/test/CFrontend/2007-02-25-C-DotDotDot.c	Sun Feb 25 16:02:01 2007
***************
*** 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;}
+ 
+ 






More information about the llvm-commits mailing list