summaryrefslogtreecommitdiffstats
path: root/testsuite/transok/three.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/transok/three.stp')
-rwxr-xr-xtestsuite/transok/three.stp27
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/transok/three.stp b/testsuite/transok/three.stp
new file mode 100755
index 00000000..ce94531c
--- /dev/null
+++ b/testsuite/transok/three.stp
@@ -0,0 +1,27 @@
+#! stap
+
+function f1 (a, b) {
+ c = 1;
+ d = "hello";
+ # poo[c] = bab[d] = "hi"
+ bab = "hi";
+ bab = poo[c];
+ return 0
+}
+
+function f2 () {
+ return f1 (4, "zoo");
+}
+
+global koo
+global poo, bab
+
+probe z {
+ f2 ();
+ koo = 1
+}
+
+probe x,y {
+ f2 ();
+ f1 (f1 (3, "foo"), "canoe")
+}