blob: 969602200c197ee96fd94a104ba54845dfbb5ea9 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | \
2// RUN: grep {call float @foo}
3
4// Make sure the call to foo is compiled as:
5// call float @foo()
6// not
7// call float (...)* bitcast (float ()* @foo to float (...)*)( )
8
9static float foo() { return 0.0; }
10float bar() { return foo()*10.0;}
11
12