diff options
Diffstat (limited to 'testsuite/buildok/array_size.stp')
-rwxr-xr-x | testsuite/buildok/array_size.stp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/buildok/array_size.stp b/testsuite/buildok/array_size.stp new file mode 100755 index 00000000..44a5e58c --- /dev/null +++ b/testsuite/buildok/array_size.stp @@ -0,0 +1,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]) +} |