From d8e610f05aafd65e2afef59088db43a2c946680f Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 2 Jun 2005 21:10:49 +0000 Subject: none --- testsuite/transok/two.stp | 5 +++++ translate.cxx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 testsuite/transok/two.stp diff --git a/testsuite/transok/two.stp b/testsuite/transok/two.stp new file mode 100755 index 00000000..d62e88a8 --- /dev/null +++ b/testsuite/transok/two.stp @@ -0,0 +1,5 @@ +#! stap +probe k,l { 2; } +function poo (zoo) { n = poo2 (8); return "foo" . zoo } +function poo2 (zoo) { return poo3 (2 + 4 * zoo) } +function poo3 (zoo) { return zoo } diff --git a/translate.cxx b/translate.cxx index 76dadf7b..f53e2952 100644 --- a/translate.cxx +++ b/translate.cxx @@ -717,7 +717,7 @@ c_unparser::visit_binary_expression (binary_expression* e) e->right->visit (this); o->line() << ")"; } - // % and / need a division-by-zero check + // XXX: % and / need a division-by-zero check else throw semantic_error ("not yet implemented", e->tok); } -- cgit