blob: 3f96fd1f9e1f2b3af743124b31e5f0a5d4825005 [file] [log] [blame]
Duncan Sandsbb8f5902010-11-25 21:24:35 +00001// RUN: %llvmgcc -O0 -S -o - -fno-inline -fno-unit-at-a-time %s | \
Reid Spencerdcb925e2007-04-15 20:08:37 +00002// RUN: grep {call float @foo}
Chris Lattner876e5942007-02-25 22:02:01 +00003
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