aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/usual-float.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/usual-float.c')
-rw-r--r--test/Sema/usual-float.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Sema/usual-float.c b/test/Sema/usual-float.c
index 81e9e6d04b..9c1977ff24 100644
--- a/test/Sema/usual-float.c
+++ b/test/Sema/usual-float.c
@@ -1,6 +1,12 @@
// RUN: clang %s -fsyntax-only
+typedef float CGFloat;
+
+extern void func(CGFloat);
void foo(int dir, int n, int tindex) {
const float PI = 3.142;
-float ang = (float) tindex * (-dir*2.0f*PI/n);
+ CGFloat cgf = 3.4;
+
+ float ang = (float) tindex * (-dir*2.0f*PI/n);
+ func((CGFloat)cgf/65535.0f);
}