summaryrefslogtreecommitdiffstats
path: root/testsuite/transok/four.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/transok/four.stp')
-rwxr-xr-xtestsuite/transok/four.stp13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/transok/four.stp b/testsuite/transok/four.stp
new file mode 100755
index 00000000..daad4f5d
--- /dev/null
+++ b/testsuite/transok/four.stp
@@ -0,0 +1,13 @@
+#! stap
+
+function f () {
+ return 0
+}
+
+probe end {
+ a = 0 as = ""
+ b = a * (b + c) - d bs = as . "bs" . as
+ c = (a > b) ? (a == b) : (a != b) cs = (as > bs) ? (as == bs) : (as != bs)
+ d = (a > b) + (a >= b) + (a < b) + (a <= b)
+ if (a) b else c if (cs) 0 else 1
+}