summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/two.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semok/two.stp')
-rwxr-xr-xtestsuite/semok/two.stp13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/semok/two.stp b/testsuite/semok/two.stp
new file mode 100755
index 00000000..f3c6046e
--- /dev/null
+++ b/testsuite/semok/two.stp
@@ -0,0 +1,13 @@
+#! semtest
+
+global bar, baz;
+
+function koo (p) {
+ baz [p, "p", p] ++;
+ return p + 2;
+}
+
+probe foo {
+ bar = 2 + koo (4);
+ foo = bar + koo;
+}