xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/usual-float.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
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