diff options
author | dgp <dgp@users.sourceforge.net> | 2007-03-02 17:56:25 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-03-02 17:56:25 (GMT) |
commit | cd496d782fff1c8e8c78906717567c871519387e (patch) | |
tree | e709815aec1006f933b22e85f6406763f51ede60 /tests | |
parent | 986970a95155cda5c067008629993af20bd86e52 (diff) | |
download | tcl-cd496d782fff1c8e8c78906717567c871519387e.zip tcl-cd496d782fff1c8e8c78906717567c871519387e.tar.gz tcl-cd496d782fff1c8e8c78906717567c871519387e.tar.bz2 |
* generic/tclCmdIL.c (Tcl_LreverseObjCmd): Added missing
TclInvalidateStringRep() call when we directly manipulate the
intrep of an unshared "list" Tcl_Obj. [Bug 1672585].
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmdIL.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test index 87af599..083d393 100644 --- a/tests/cmdIL.test +++ b/tests/cmdIL.test @@ -8,7 +8,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: cmdIL.test,v 1.30 2006/11/09 16:11:46 dkf Exp $ +# RCS: @(#) $Id: cmdIL.test,v 1.31 2007/03/02 17:56:27 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -740,6 +740,9 @@ test cmdIL-7.4 {lreverse command - shared object} { test cmdIL-7.5 {lreverse command - unshared object} { lreverse [list a b {c d} e f] } {f e {c d} b a} +test cmdIL-7.6 {lreverse command - unshared object [Bug 1672585]} { + lreverse [set x {1 2 3}][unset x] +} {3 2 1} # cleanup ::tcltest::cleanupTests |