summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-xtestsuite/parseko/array01.stp4
-rwxr-xr-xtestsuite/parseko/array02.stp4
-rwxr-xr-xtestsuite/parseko/array03.stp4
-rwxr-xr-xtestsuite/parseko/array04.stp4
4 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/parseko/array01.stp b/testsuite/parseko/array01.stp
new file mode 100755
index 00000000..81e7f249
--- /dev/null
+++ b/testsuite/parseko/array01.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+
+# array size must be >0
+global a[0]
diff --git a/testsuite/parseko/array02.stp b/testsuite/parseko/array02.stp
new file mode 100755
index 00000000..2825cce5
--- /dev/null
+++ b/testsuite/parseko/array02.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+
+# array size must have a reasonable upper limit
+global a[1000000000]
diff --git a/testsuite/parseko/array03.stp b/testsuite/parseko/array03.stp
new file mode 100755
index 00000000..601efff6
--- /dev/null
+++ b/testsuite/parseko/array03.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+
+# arrays can't be initialized with a scalar number
+global a[10] = 42
diff --git a/testsuite/parseko/array04.stp b/testsuite/parseko/array04.stp
new file mode 100755
index 00000000..476685ed
--- /dev/null
+++ b/testsuite/parseko/array04.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+
+# arrays can't be initialized with a scalar string
+global a[10] = "foobar"