Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -O0 %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 | |||||
8 | static float foo() { return 0.0; } | ||||
9 | // CHECK: call float @foo | ||||
10 | float bar() { return foo()*10.0;} |