summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtestsuite/transok/two.stp5
-rw-r--r--translate.cxx2
2 files changed, 6 insertions, 1 deletions
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);
}