From a105d7f9bbd0f1a81e0b218797b6ae3cd40db788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 31 Oct 1999 15:59:37 +0100 Subject: [PATCH] Made the += test optimizer-proof. Rev: src/testsuite.in:1.217 --- src/testsuite.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testsuite.in b/src/testsuite.in index e37b551792..d9c278f4ea 100644 --- a/src/testsuite.in +++ b/src/testsuite.in @@ -1,4 +1,4 @@ -test_true([["$Id: testsuite.in,v 1.216 1999/10/31 14:58:27 grubba Exp $"]]) +test_true([["$Id: testsuite.in,v 1.217 1999/10/31 14:59:37 grubba Exp $"]]) cond([[all_constants()->_verify_internals]], [[ @@ -1407,8 +1407,8 @@ cond([[ sizeof( cpp("__AUTO_BIGNUM__")/"__AUTO_BIGNUM__" ) == 1 ]], test_false([[ objectp((-0x80000001) + 1) ]]) // - Add-eq. - test_eq([[ lambda() { int a=0x100000000; int b = a; a += 1; return b; }() ]], - [[ 0x100000000 ]]) + test_eq([[lambda() { int a=0x100000000; int b = a; a += 1; return b+a; }()]], + [[0x200000001]]) // - Sub. test_eq("-2147483648", [[ (string)(-0x7fffffff - 1) ]]) -- GitLab