Duncan Sands | bb8f590 | 2010-11-25 21:24:35 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -O0 -S -o - -fno-inline -fno-unit-at-a-time %s | \ |
Reid Spencer | dcb925e | 2007-04-15 20:08:37 +0000 | [diff] [blame] | 2 | // RUN: grep {call float @foo} |
Chris Lattner | 876e594 | 2007-02-25 22:02:01 +0000 | [diff] [blame] | 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 | |||||
9 | static float foo() { return 0.0; } | ||||
10 | float bar() { return foo()*10.0;} | ||||
11 | |||||
12 |