summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/twentyfive.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semok/twentyfive.stp')
-rwxr-xr-xtestsuite/semok/twentyfive.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/semok/twentyfive.stp b/testsuite/semok/twentyfive.stp
new file mode 100755
index 00000000..fadca484
--- /dev/null
+++ b/testsuite/semok/twentyfive.stp
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+stap -p2 -e 'probe begin {foo$1$2$3}' # $-expansion only at token head
+stap -p2 -e 'probe $1 $2' 'syscall.open,begin' '{log ("hello\n")}'
+stap -p2 -e 'probe begin {@1 @2}' 'syscall.open,begin' '{log ("hello\n")}'
+stap -p2 -e 'probe begin {log (@1.@2)}' 'syscall.open,begin' '{log ("hello\n")}'
+