diff options
Diffstat (limited to 'testsuite/systemtap.base/optim.stp')
-rw-r--r-- | testsuite/systemtap.base/optim.stp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/optim.stp b/testsuite/systemtap.base/optim.stp index 6ca722a6..915a65da 100644 --- a/testsuite/systemtap.base/optim.stp +++ b/testsuite/systemtap.base/optim.stp @@ -3,7 +3,12 @@ function func(i) { array[i++] = 0; return i; } +function bart() { # rhbz# 300121 + if (1) var=2 else dummy=0 + return var +} probe begin { printf ("i=%d\n", func(0)) + printf ("j=%d\n", bart()) exit () } |