[Nice-commit] Nice/testsuite/compiler/expressions/operators/numeric conversion.testsuite,1.2,1.3
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-18 15:14:51
|
Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/operators/numeric
In directory sc8-pr-cvs1:/tmp/cvs-serv360/testsuite/compiler/expressions/operators/numeric
Modified Files:
conversion.testsuite
Log Message:
Added the `double` operator, similarly to the other primitive type operators.
This one does no narrowing, but allows to lose precision over the type of
an expression, which can be necessary to resolve an ambiguity.
Index: conversion.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/operators/numeric/conversion.testsuite,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** conversion.testsuite 6 Dec 2002 12:49:56 -0000 1.2
--- conversion.testsuite 18 Apr 2003 15:14:47 -0000 1.3
***************
*** 43,44 ****
--- 43,51 ----
// A double value too small for float underflows to zero:
assert float(1e-50) == 0;
+
+ /// PASS
+ int i = 0;
+ foo(double(i));
+ /// Toplevel
+ void foo(int) {}
+ void foo(double) {}
|