2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only
|
2007-10-18 11:50:33 +08:00
|
|
|
|
2007-11-11 03:45:54 +08:00
|
|
|
typedef float CGFloat;
|
|
|
|
|
|
|
|
extern void func(CGFloat);
|
2007-10-18 11:50:33 +08:00
|
|
|
void foo(int dir, int n, int tindex) {
|
|
|
|
const float PI = 3.142;
|
2007-11-11 03:45:54 +08:00
|
|
|
CGFloat cgf = 3.4;
|
|
|
|
|
|
|
|
float ang = (float) tindex * (-dir*2.0f*PI/n);
|
|
|
|
func((CGFloat)cgf/65535.0f);
|
2007-10-18 11:50:33 +08:00
|
|
|
}
|