Added tests for FP type coercion

git-svn-id: http://picoc.googlecode.com/svn/trunk@296 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-05-27 05:06:36 +00:00
parent 4949ad046a
commit 8b2fd2c56a
2 changed files with 7 additions and 0 deletions

View file

@ -33,3 +33,8 @@ printf("%f\n", a);
// prefix operators
printf("%f\n", +12.34);
printf("%f\n", -12.34);
// type coercion
a = 2;
printf("%f\n", a);
printf("%f\n", sin(2));

View file

@ -12,3 +12,5 @@
0.21733
12.34
-12.34
2.0
0.9