diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2010-01-12 13:45:55 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2010-01-12 13:45:55 +0800 |
commit | c28668eaddf956b8c481e436e939d0b35bacaf68 (patch) | |
tree | a7cd9ebe06e19b1478172236f839000ddd602089 /testsuite | |
parent | f2aadddae0d01fa5a676404e49c6c36825b40512 (diff) | |
download | systemtap-steved-c28668eaddf956b8c481e436e939d0b35bacaf68.tar.gz systemtap-steved-c28668eaddf956b8c481e436e939d0b35bacaf68.tar.xz systemtap-steved-c28668eaddf956b8c481e436e939d0b35bacaf68.zip |
PR10747: check invalid preprocessor construct
* parse.cxx (scan_pp): Match '%(' and '%?'.
* testsuite/semko/conditional.stp: New test.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/semko/conditional.stp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/semko/conditional.stp b/testsuite/semko/conditional.stp new file mode 100644 index 00000000..ee164548 --- /dev/null +++ b/testsuite/semko/conditional.stp @@ -0,0 +1,5 @@ +#! stap -p2 + +probe begin { + %( 1 == 0 %? print(1) %? print(2) %) +} |