Debian Codegraph @

testsuite/semko/eleven.stp

raw
1 #! stap -up2
2
3 global arr,rra
4 global s,n
5 probe begin {
6 arr[0]="value"
7 rra["key"]=0
8 }
9 probe end {
10 # confirm that typechecking works the same way for all array indexing
11 if (k in arr) { s=k.""; i=arr[k]+0 }
12 foreach (l in arr) { s=l.""; i=arr[l]+0 }
13 if (m in rra) { i=m+1; s=rra[m]."" }
14 foreach (n in rra) { i=n+0; s=rra[n]."" }
15 }