1 # Tests auto-upref with the "&name" syntax
3 source [file dirname [info script]]/testing.tcl
12 proc a2 {&b {dummy 3} &c} {
21 # This is treated as a normal var "&b"
29 test procref-1.1 {Basic test} {
34 test procref-1.2 {Basic test} {
39 test procref-1.3 {Unset var} -body {
41 } -returnCodes error -result {can't read "unsetB": no such variable}
43 test procref-1.4 {Left and right args are refs} {
48 test procref-1.5 {Invalid arg} -body {
50 } -returnCodes error -result {bad variable name "b(c)": upvar won't create a scalar variable that looks like an array element}
52 test procref-1.6 {Default arg as ref} {