From 313b2f74ad5b3e54dc1b24d15f29e7bbe9548305 Mon Sep 17 00:00:00 2001 From: graydon Date: Wed, 20 Jul 2005 23:51:17 +0000 Subject: 2005-07-20 Graydon Hoare * elaborate.{cxx,h} (find_array): Remove. (find_scalar): Rename to find_var, add array support. * staptree.{cxx,h} (vardecl::compatible_arity): New method. * translate.cxx: Refactor, add array read/write support. * testsuite/transok/three.stp: Uncomment array uses. * testsuite/transok/seven.stp: New test of array r/w. --- testsuite/transok/three.stp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuite/transok/three.stp') diff --git a/testsuite/transok/three.stp b/testsuite/transok/three.stp index 475b832f..6e99b640 100755 --- a/testsuite/transok/three.stp +++ b/testsuite/transok/three.stp @@ -1,11 +1,13 @@ #! stap -p3 +global poo + function f1 (a, b) { c = 1; d = "hello"; # poo[c] = bab[d] = "hi" bab = "hi"; - # bab = poo[c]; + bab = poo[c]; return 0 } -- cgit