diff options
Diffstat (limited to 'testsuite/transok/four.stp')
-rwxr-xr-x | testsuite/transok/four.stp | 13 |
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 +} |