From 63a7c90e365874972925e886ed50941f5620bdfe Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 3 Jun 2005 15:54:47 +0000 Subject: 2005-06-03 Frank Ch. Eigler * parse.cxx (scan): Support C and C++ comment styles. * testsuite/parseok/four.stp: Test them some ... * testsuite/parseko/nine.stp: ... and some more. --- testsuite/parseko/nine.stp | 4 ++++ testsuite/parseok/four.stp | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 testsuite/parseko/nine.stp (limited to 'testsuite') diff --git a/testsuite/parseko/nine.stp b/testsuite/parseko/nine.stp new file mode 100755 index 00000000..438824cb --- /dev/null +++ b/testsuite/parseko/nine.stp @@ -0,0 +1,4 @@ +#! stap -p1 +probe foo { + /*/ 0 +} diff --git a/testsuite/parseok/four.stp b/testsuite/parseok/four.stp index 39c9ebd4..9d7a8729 100755 --- a/testsuite/parseok/four.stp +++ b/testsuite/parseok/four.stp @@ -1,7 +1,10 @@ #! stap -p1 probe syscall ("foo").foo.bar , syscall ("bar"), syscall ("*").return -{ - $a = a$a = a$a$ = 0; +{ # no comment + $a = /* comment */ a$a = /**/ a$a$ = 0; // more comment } - +/* empty comment lines */ +/**/ +# +// -- cgit