Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 %s -fsyntax-only
      2 
      3 typedef float CGFloat;
      4 
      5 extern void func(CGFloat);
      6 void foo(int dir, int n, int tindex) {
      7   const float PI = 3.142;
      8   CGFloat cgf = 3.4;
      9 
     10   float ang = (float) tindex * (-dir*2.0f*PI/n);
     11   func((CGFloat)cgf/65535.0f);
     12 }
     13