summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-xtestsuite/parseko/eight.stp4
-rwxr-xr-xtestsuite/parseko/seven.stp6
-rwxr-xr-xtestsuite/parseko/three.stp5
3 files changed, 8 insertions, 7 deletions
diff --git a/testsuite/parseko/eight.stp b/testsuite/parseko/eight.stp
new file mode 100755
index 00000000..4d343159
--- /dev/null
+++ b/testsuite/parseko/eight.stp
@@ -0,0 +1,4 @@
+#! stap -p1
+probe foo {
+ foreach ([a, b, c] in) ;
+}
diff --git a/testsuite/parseko/seven.stp b/testsuite/parseko/seven.stp
index 06f8a3ba..0b72f9f8 100755
--- a/testsuite/parseko/seven.stp
+++ b/testsuite/parseko/seven.stp
@@ -1,8 +1,8 @@
#! stap -p1
probe foo {
- (a,) in b;
- (,c) in d;
- () in e;
+ [a,] in b;
+ [,c] in d;
+ [] in e;
a in e[2];
}
diff --git a/testsuite/parseko/three.stp b/testsuite/parseko/three.stp
index be810e9d..b40c7708 100755
--- a/testsuite/parseko/three.stp
+++ b/testsuite/parseko/three.stp
@@ -1,7 +1,4 @@
#! stap -p1
-
probe foo {
- a(1)
-# need ;
- b(2)
+ foreach (a) ;
}