From 553d27a587615e4b242a89bf1a7af93b71f050f0 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 3 Jun 2005 21:01:35 +0000 Subject: 2005-06-03 Frank Ch. Eigler * TODO: Removed entries already represented in bugzilla. * elaborate.cxx: Rewrite type inference for several operators. * main.cxx (main): For -p2 runs, print types of function/probe locals. * parse.cxx (scan): Identify more two-character operators. (parse_comparison): Support the whole suite. * translate.cxx (visit_unary_expression, logical_or_expr, logical_and_expr, comparison,ternary_expression): New support. * testsuite/parseok/semok.stp: Clever new test. * testsuite/transok/four.stp: New test. * testsuite/*: Some tweaked tests for syntax changes. --- testsuite/transok/four.stp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 testsuite/transok/four.stp (limited to 'testsuite/transok/four.stp') diff --git a/testsuite/transok/four.stp b/testsuite/transok/four.stp new file mode 100755 index 00000000..daad4f5d --- /dev/null +++ b/testsuite/transok/four.stp @@ -0,0 +1,13 @@ +#! stap + +function f () { + return 0 +} + +probe end { + a = 0 as = "" + b = a * (b + c) - d bs = as . "bs" . as + c = (a > b) ? (a == b) : (a != b) cs = (as > bs) ? (as == bs) : (as != bs) + d = (a > b) + (a >= b) + (a < b) + (a <= b) + if (a) b else c if (cs) 0 else 1 +} -- cgit