Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fsyntax-only |
Chris Lattner | 27b837c | 2007-10-18 03:50:33 +0000 | [diff] [blame] | 2 | |
Steve Naroff | f68a63f | 2007-11-10 19:45:54 +0000 | [diff] [blame] | 3 | typedef float CGFloat; |
| 4 | |
| 5 | extern void func(CGFloat); |
Chris Lattner | 27b837c | 2007-10-18 03:50:33 +0000 | [diff] [blame] | 6 | void foo(int dir, int n, int tindex) { |
| 7 | const float PI = 3.142; |
Steve Naroff | f68a63f | 2007-11-10 19:45:54 +0000 | [diff] [blame] | 8 | CGFloat cgf = 3.4; |
| 9 | |
| 10 | float ang = (float) tindex * (-dir*2.0f*PI/n); |
| 11 | func((CGFloat)cgf/65535.0f); |
Chris Lattner | 27b837c | 2007-10-18 03:50:33 +0000 | [diff] [blame] | 12 | } |