summaryrefslogtreecommitdiffstats
path: root/tests/expr.test
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2005-08-05 18:50:19 (GMT)
committerkennykb <kennykb@noemail.net>2005-08-05 18:50:19 (GMT)
commite2548f9f6642ce3219fabd9c51201b8660ee9ee3 (patch)
tree198e2c38a17a43259d35c7f36b254a93b0182e76 /tests/expr.test
parentee17a2565d913dbb71b40aa40d668f0696d0de20 (diff)
downloadtcl-e2548f9f6642ce3219fabd9c51201b8660ee9ee3.zip
tcl-e2548f9f6642ce3219fabd9c51201b8660ee9ee3.tar.gz
tcl-e2548f9f6642ce3219fabd9c51201b8660ee9ee3.tar.bz2
Handle abs(-0x80000000) [Bug 1241572]
FossilOrigin-Name: e57db809fd700919d46855d7b0b6082a7c57fe8c
Diffstat (limited to 'tests/expr.test')
-rw-r--r--tests/expr.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 1aad141..89ac635 100644
--- a/tests/expr.test
+++ b/tests/expr.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: expr.test,v 1.37 2005/07/28 18:42:28 dgp Exp $
+# RCS: @(#) $Id: expr.test,v 1.38 2005/08/05 18:50:30 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -6453,6 +6453,10 @@ test expr-37.14 {expr edge cases} {wideIs64bit} {
} {1 * -9223372036854775806 + -2 = -9223372036854775808}
+test expr-38.1 {abs of smallest 32-bit integer [Bug 1241572]} {wideIs64bit} {
+ expr {abs(-2147483648)}
+} 2147483648
+
# cleanup
if {[info exists a]} {
unset a