Debian Codegraph @

testsuite/buildok/array_size.stp

raw
1 #! stap -p4
2
3 # test reading & writing for little, big, and default arrays, with various
4 # index types mixed in.
5 global a[1], b[100000], c
6 probe begin {
7 a[42, "foobar"] = "Hello World!"
8 b["foo", "bar", "baz", 42] = 314159265
9 c[42] = 161803399
10 printf("%s %d %d\n", a[42, "foobar"], b["foo", "bar", "baz", 42], c[42])
11 }