summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/array_size.stp
blob: 44a5e58cd5d9eaba1caa679c4140bd158a718f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
#! stap -p4

# test reading & writing for little, big, and default arrays, with various
# index types mixed in.
global a[1], b[100000], c
probe begin {
    a[42, "foobar"] = "Hello World!"
    b["foo", "bar", "baz", 42] = 314159265
    c[42] = 161803399
    printf("%s %d %d\n", a[42, "foobar"], b["foo", "bar", "baz", 42], c[42])
}