summaryrefslogtreecommitdiffstats
path: root/testsuite/transko
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/transko')
-rwxr-xr-xtestsuite/transko/array01.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/transko/array01.stp b/testsuite/transko/array01.stp
new file mode 100755
index 00000000..f936cefa
--- /dev/null
+++ b/testsuite/transko/array01.stp
@@ -0,0 +1,7 @@
+#! stap -p3
+
+# arrays can't be inferred as anything else
+global a[10]
+probe begin {
+ printf("%d\n", @count(a)) # try to make 'a' a stat
+}