From 2d7881bf6e14d14fa1394f65f11b4d1dce4e2623 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Fri, 28 Aug 2009 02:11:47 +0200 Subject: 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 --- testsuite/parseko/preprocess15.stp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 testsuite/parseko/preprocess15.stp (limited to 'testsuite/parseko/preprocess15.stp') 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() { } %) -- cgit