summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/optim_arridx.stp
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2008-08-27 17:56:28 -0400
committerStan Cox <scox@redhat.com>2008-08-27 17:56:28 -0400
commit0a102c820c4ee8da300b4a834ef0f15fa13016d3 (patch)
tree02d0b0a216d46ad37f712d063d05f47402283183 /testsuite/systemtap.base/optim_arridx.stp
parent695ae5272479f77d261eea37a9ee4bef55c4ab12 (diff)
downloadsystemtap-steved-0a102c820c4ee8da300b4a834ef0f15fa13016d3.tar.gz
systemtap-steved-0a102c820c4ee8da300b4a834ef0f15fa13016d3.tar.xz
systemtap-steved-0a102c820c4ee8da300b4a834ef0f15fa13016d3.zip
Automatically print written but unread globals
Diffstat (limited to 'testsuite/systemtap.base/optim_arridx.stp')
-rw-r--r--testsuite/systemtap.base/optim_arridx.stp6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/optim_arridx.stp b/testsuite/systemtap.base/optim_arridx.stp
index 3e4f8fd2..5c9c1051 100644
--- a/testsuite/systemtap.base/optim_arridx.stp
+++ b/testsuite/systemtap.base/optim_arridx.stp
@@ -1,7 +1,7 @@
global arr1, arr2, arr3, elide_idx1, elide_global_a, elide_global_b
function fna(a:long) {return a}
-function fnb(a:long, b:long) {return a+b+printf("")}
+function fnb(a:long, b:long) {return a+b}
probe begin {
// array indices
@@ -16,7 +16,7 @@ probe begin {
m = 1
for (elide_n=2; m <= 10; m++)
arr2[m] = m * 10
- printf ("%d %d %d %d\n", arr1[0], arr2[0,0], idx2, j)
+ printf ("%d %d %d %d\n", arr1[0,0], arr2[0], idx2, j)
// function args
aa = fna(elide_aa = 1)
@@ -40,6 +40,6 @@ probe begin {
// binary expression
cc = ((elide_hh = 4) + (cc = 1))
- printf("%d %d %d %d %d", aa, bb, cc, dd, ee)
+ printf("%d %d %d %d %d\n", aa, bb, cc, dd, ee)
exit ()
}