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:
parent
4949ad046a
commit
8b2fd2c56a
|
@ -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));
|
||||
|
|
|
@ -12,3 +12,5 @@
|
|||
0.21733
|
||||
12.34
|
||||
-12.34
|
||||
2.0
|
||||
0.9
|
||||
|
|
Loading…
Reference in a new issue