blob: 541609b7e2c151f9f07eb63fe36025ee02fdabaa [file] [log] [blame]
Chris Lattner876e5942007-02-25 22:02:01 +00001// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | grep 'call float @foo'
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
8static float foo() { return 0.0; }
9float bar() { return foo()*10.0;}
10
11