summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok/fourteen.stp
diff options
context:
space:
mode:
authorfche <fche>2007-04-04 21:18:23 +0000
committerfche <fche>2007-04-04 21:18:23 +0000
commit5811366a62325d2cacf5509c25ee564ae3269f9b (patch)
tree655f7d1b88d1901b7121151951b671cd9c940105 /testsuite/parseok/fourteen.stp
parent3b5793932ec33f897433bc513b49f35bd8b35b2f (diff)
downloadsystemtap-steved-5811366a62325d2cacf5509c25ee564ae3269f9b.tar.gz
systemtap-steved-5811366a62325d2cacf5509c25ee564ae3269f9b.tar.xz
systemtap-steved-5811366a62325d2cacf5509c25ee564ae3269f9b.zip
2007-04-03 Pierre Peiffer <pierre.peiffer@bull.net>
* 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 <pierre.peiffer@bull.net> * 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.
Diffstat (limited to 'testsuite/parseok/fourteen.stp')
-rwxr-xr-xtestsuite/parseok/fourteen.stp11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/parseok/fourteen.stp b/testsuite/parseok/fourteen.stp
index cc51b90b..30ada648 100755
--- a/testsuite/parseok/fourteen.stp
+++ b/testsuite/parseok/fourteen.stp
@@ -15,3 +15,14 @@ global
%: %( arch != "x86_64" %? other %: x86_64 %)
%)
%)
+
+global
+%( $# != 2 %? /* and */
+ %( @# < "1" %? /* and */
+ %( @# == "0" %? /* and */
+ %( $# >= 3 %? /* and */
+ %( $2 >= "12" %? $3 FAIL5 %: $2 FAIL6 %) #This line must not be evaluated
+ %: PASS2 %)
+ %: "FAIL7" %)
+ %: "FAIL8" %)
+%: "FAIL9" %)