From 739a3e814f64578666c4d2e25a2bab2b771a8559 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 21 Sep 2007 18:03:28 +0000 Subject: rhbz 300121: optimization bug --- testsuite/systemtap.base/optim.stp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite/systemtap.base/optim.stp') 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 () } -- cgit