summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/semok/fifteen.stp12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/semok/fifteen.stp b/testsuite/semok/fifteen.stp
new file mode 100755
index 00000000..c57d28eb
--- /dev/null
+++ b/testsuite/semok/fifteen.stp
@@ -0,0 +1,12 @@
+#! stap -p2
+
+function trace (n) { return 0 }
+
+# multiple independent derived probes using the "same" variable
+# (this used to crash before we deep-copied the body)
+
+probe begin, begin, begin
+{
+ base_num = 10
+ trace(base_num)
+}