From c28668eaddf956b8c481e436e939d0b35bacaf68 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Tue, 12 Jan 2010 13:45:55 +0800 Subject: PR10747: check invalid preprocessor construct * parse.cxx (scan_pp): Match '%(' and '%?'. * testsuite/semko/conditional.stp: New test. --- testsuite/semko/conditional.stp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testsuite/semko/conditional.stp (limited to 'testsuite/semko/conditional.stp') 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) %) +} -- cgit