blob: 5a9ab344ce3604c01724c5c344a3139797ccea38 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -fsyntax-only
Chris Lattner27b837c2007-10-18 03:50:33 +00002
Steve Narofff68a63f2007-11-10 19:45:54 +00003typedef float CGFloat;
4
5extern void func(CGFloat);
Chris Lattner27b837c2007-10-18 03:50:33 +00006void foo(int dir, int n, int tindex) {
7 const float PI = 3.142;
Steve Narofff68a63f2007-11-10 19:45:54 +00008 CGFloat cgf = 3.4;
9
10 float ang = (float) tindex * (-dir*2.0f*PI/n);
11 func((CGFloat)cgf/65535.0f);
Chris Lattner27b837c2007-10-18 03:50:33 +000012}