2013-09-04 12:12:25 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s
|
2011-07-27 06:17:02 +08:00
|
|
|
|
|
|
|
// Make sure the call to foo is compiled as:
|
|
|
|
// call float @foo()
|
|
|
|
// not
|
2015-04-17 07:25:00 +08:00
|
|
|
// call float (...) bitcast (float ()* @foo to float (...)*)( )
|
2011-07-27 06:17:02 +08:00
|
|
|
|
|
|
|
static float foo() { return 0.0; }
|
|
|
|
// CHECK: call float @foo
|
|
|
|
float bar() { return foo()*10.0;}
|