
2006-07-05 Roland Levillain <roland@lrde.epita.fr> Fix some tests using ntg::range. * tests/types/tests/float_r2, tests/types/tests/range2, * tests/types/tests/range2b: Fix tests. Index: 10.230/integre/tests/types/tests/float_r2 --- 10.230/integre/tests/types/tests/float_r2 Tue, 20 Apr 2004 15:16:21 +0200 van-vl_n (oln/h/11_float_r2 1.3 600) +++ 10.230(w)/integre/tests/types/tests/float_r2 Tue, 04 Jul 2006 14:13:52 +0200 levill_r (oln/h/11_float_r2 1.3 600) @@ -28,4 +28,8 @@ typedef range<float_s, bounded_s<10, 20>, strict> sr; sr f = 23.0; // ABORT -(void) f; +/* Make as if `f' is actually used. As we can't cast `f' to `void' + here (since it would produce an error in + `ntg::range<T, interval, behavior>::operator U()', we assign `f' to + itself. */ +f = f; Index: 10.230/integre/tests/types/tests/range2b --- 10.230/integre/tests/types/tests/range2b Tue, 20 Apr 2004 15:16:21 +0200 van-vl_n (oln/h/36_range2b 1.2 600) +++ 10.230(w)/integre/tests/types/tests/range2b Tue, 04 Jul 2006 14:18:29 +0200 levill_r (oln/h/36_range2b 1.2 600) @@ -27,4 +27,8 @@ // Public License. range<int_u8, bounded_u<10, 13> > u = 14; // ABORT -(void) u; +/* Make as if `u' is actually used. As we can't cast `u' to `void' + here (since it would produce an error in + `ntg::range<T, interval, behavior>::operator U()', we assign `u' to + itself. */ +u = u; Index: 10.230/integre/tests/types/tests/range2 --- 10.230/integre/tests/types/tests/range2 Tue, 20 Apr 2004 15:16:21 +0200 van-vl_n (oln/h/33_range2 1.2 600) +++ 10.230(w)/integre/tests/types/tests/range2 Tue, 04 Jul 2006 14:17:13 +0200 levill_r (oln/h/33_range2 1.2 600) @@ -27,4 +27,8 @@ // Public License. range<int_u8, bounded_u<10, 13>, strict> u = 14; // ABORT -(void) u; +/* Make as if `u' is actually used. As we can't cast `u' to `void' + here (since it would produce an error in + `ntg::range<T, interval, behavior>::operator U()', we assign `u' to + itself. */ +u = u;