From 5811366a62325d2cacf5509c25ee564ae3269f9b Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 4 Apr 2007 21:18:23 +0000 Subject: 2007-04-03 Pierre Peiffer * parse.cxx, parse.h (lexer::scan): Add $# and @# identifiers. (eval_pp_conditional, scan_pp): Allow the use of $x and @x identifiers. Produce more accurate error messages. * stap.1.in: Document $# and @# identifiers. 2007-04-04 Pierre Peiffer * parseok/fourteen.stp: Add test about $# and @# usage during the preprocessing. * parseko/preprocess10.stp: New test. * parseko/preprocess11.stp: New test. * parseko/preprocess12.stp: New test. --- testsuite/parseko/preprocess12.stp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 testsuite/parseko/preprocess12.stp (limited to 'testsuite/parseko/preprocess12.stp') diff --git a/testsuite/parseko/preprocess12.stp b/testsuite/parseko/preprocess12.stp new file mode 100755 index 00000000..3ff3e34e --- /dev/null +++ b/testsuite/parseko/preprocess12.stp @@ -0,0 +1,5 @@ +#! stap -p1 + +# command line argument index invalid or out of range +# (try to access to an unavailable argument) +%( $# < 2 %? probe begin { print @1 } %) -- cgit