summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/semlib/f1.stp1
-rw-r--r--testsuite/semlib/g1.stp2
-rw-r--r--testsuite/semlib/g2.stp2
-rwxr-xr-xtestsuite/semok/eight.stp3
-rwxr-xr-xtestsuite/semok/nine.stp3
5 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/semlib/f1.stp b/testsuite/semlib/f1.stp
new file mode 100644
index 00000000..4a2f989d
--- /dev/null
+++ b/testsuite/semlib/f1.stp
@@ -0,0 +1 @@
+function f1 () { return 0 }
diff --git a/testsuite/semlib/g1.stp b/testsuite/semlib/g1.stp
new file mode 100644
index 00000000..b209a3d2
--- /dev/null
+++ b/testsuite/semlib/g1.stp
@@ -0,0 +1,2 @@
+global g1
+function g1set (a) { g1 = a + 0 }
diff --git a/testsuite/semlib/g2.stp b/testsuite/semlib/g2.stp
new file mode 100644
index 00000000..d42f70c0
--- /dev/null
+++ b/testsuite/semlib/g2.stp
@@ -0,0 +1,2 @@
+global g2
+probe begin { g2 = f1() }
diff --git a/testsuite/semok/eight.stp b/testsuite/semok/eight.stp
new file mode 100755
index 00000000..01119953
--- /dev/null
+++ b/testsuite/semok/eight.stp
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+./stap -p2 -I${SRCDIR}/testsuite/semlib -e 'probe begin { a = f1 (); }'
diff --git a/testsuite/semok/nine.stp b/testsuite/semok/nine.stp
new file mode 100755
index 00000000..15bcf8d9
--- /dev/null
+++ b/testsuite/semok/nine.stp
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+./stap -p2 -I${SRCDIR}/testsuite/semlib -e 'probe begin { a = g1 }'