diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2021-10-08 19:42:22 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2021-10-08 19:42:22 (GMT) |
commit | 4744055aa075fc2557e4fe6148d10afa4ffc1451 (patch) | |
tree | c7e51184ae63bf9feb5aa22a98f826bbfdd1ac29 /tests | |
parent | 0ded79bd3af336c3181682e86f6ba0db9a9cc11e (diff) | |
download | tcl-4744055aa075fc2557e4fe6148d10afa4ffc1451.zip tcl-4744055aa075fc2557e4fe6148d10afa4ffc1451.tar.gz tcl-4744055aa075fc2557e4fe6148d10afa4ffc1451.tar.bz2 |
Fix for issue [a8579d906a28], "argument with no name".
Diffstat (limited to 'tests')
-rw-r--r-- | tests/proc.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/proc.test b/tests/proc.test index 4b539c4..a6409c8 100644 --- a/tests/proc.test +++ b/tests/proc.test @@ -324,6 +324,15 @@ test proc-4.8 {TclCreateProc, procbody obj, no leak on multiple iterations} -set test proc-4.9 {[39fed4dae5] Valid Tcl_PkgPresent return} procbodytest { procbodytest::check } 1 +test proc-4.10 { + TclCreateProc, issue a8579d906a28, argument with no name +} -body { + catch { + proc p1 [list [list [expr {1 + 2}] default]] {} + } +} -cleanup { + catch {rename p1 {}} +} -result 0 test proc-5.1 {Bytecompiling noop; test for correct argument substitution} -body { proc p args {} ; # this will be bytecompiled into t |