7 lines
146 B
C
7 lines
146 B
C
|
// RUN: clang %s -fsyntax-only
|
||
|
|
||
|
void foo(int dir, int n, int tindex) {
|
||
|
const float PI = 3.142;
|
||
|
float ang = (float) tindex * (-dir*2.0f*PI/n);
|
||
|
}
|