Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/usual-float.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -fsyntax-only typedef float CGFloat; extern void func(CGFloat); void foo(int dir, int n, int tindex) { const float PI = 3.142; CGFloat cgf = 3.4; float ang = (float) tindex * (-dir*2.0f*PI/n); func((CGFloat)cgf/65535.0f); }