xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-02-25-C-DotDotDot.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s
2 
3 // Make sure the call to foo is compiled as:
4 //  call float @foo()
5 // not
6 //  call float (...)* bitcast (float ()* @foo to float (...)*)( )
7 
foo()8 static float foo() { return 0.0; }
9 // CHECK: call float @foo
bar()10 float bar() { return foo()*10.0;}
11