diff options
author | Przemyslaw Pawelczyk <przemyslaw@pawelczyk.it> | 2009-08-28 02:11:47 +0200 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-28 11:21:24 -0700 |
commit | 2d7881bf6e14d14fa1394f65f11b4d1dce4e2623 (patch) | |
tree | 85ca79b32737d42779c3b02fe0d290f6f9f25579 /testsuite/parseko | |
parent | a4433a9da1f21c6536266531308ba231e5efae81 (diff) | |
download | systemtap-steved-2d7881bf6e14d14fa1394f65f11b4d1dce4e2623.tar.gz systemtap-steved-2d7881bf6e14d14fa1394f65f11b4d1dce4e2623.tar.xz systemtap-steved-2d7881bf6e14d14fa1394f65f11b4d1dce4e2623.zip |
Support || and && in preprocessor's conditions.
* parse.cxx (parser::scan_pp): Add || and &&.
* stap.1.in: Document || and && in PREPROCESSING.
* testsuite/parseok/twenty.stp: Test case.
* testsuite/parseko/preprocess14.stp: Ditto.
* testsuite/parseko/preprocess15.stp: Ditto.
Signed-off-by: Josh Stone <jistone@redhat.com>
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-x | testsuite/parseko/preprocess14.stp | 4 | ||||
-rwxr-xr-x | testsuite/parseko/preprocess15.stp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/parseko/preprocess14.stp b/testsuite/parseko/preprocess14.stp new file mode 100755 index 00000000..7946f0e4 --- /dev/null +++ b/testsuite/parseko/preprocess14.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# incomplete compound condition +%( arch == "2.6" && %? probe begin() { } %) diff --git a/testsuite/parseko/preprocess15.stp b/testsuite/parseko/preprocess15.stp new file mode 100755 index 00000000..c4aaa9ce --- /dev/null +++ b/testsuite/parseko/preprocess15.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad compound condition +%( arch == "2.6" && || arch == "2.66" %? probe begin() { } %) |