summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-xtestsuite/parseok/eight.stp4
-rwxr-xr-xtestsuite/parseok/nine.stp15
2 files changed, 18 insertions, 1 deletions
diff --git a/testsuite/parseok/eight.stp b/testsuite/parseok/eight.stp
index 0da5c8d2..29602775 100755
--- a/testsuite/parseok/eight.stp
+++ b/testsuite/parseok/eight.stp
@@ -2,5 +2,7 @@
probe all
{
- "1" in a1; ("1", 2) in a2; (a) in a3;
+ "1" in a1; ["1", 2] in a2; [a] in a3; [("1").("2"), "1"."2"] in a4;
+ a = [akbar(("foo").("bar"))] in it_s_a_trap
+ foreach ([a, b] in a4) { foreach ([c, d] in a2) ; }
}
diff --git a/testsuite/parseok/nine.stp b/testsuite/parseok/nine.stp
new file mode 100755
index 00000000..13e40cbf
--- /dev/null
+++ b/testsuite/parseok/nine.stp
@@ -0,0 +1,15 @@
+#! stap -p1
+
+probe one
+{
+ if (a) if (b) d else e
+}
+
+probe two
+{
+ a = b
+ c = d
+ e = f();
+ g = h;
+ ;
+}