summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok
diff options
context:
space:
mode:
authorfche <fche>2005-06-03 15:54:47 +0000
committerfche <fche>2005-06-03 15:54:47 +0000
commit63a7c90e365874972925e886ed50941f5620bdfe (patch)
tree29977d33b01716551360ecf4b1fdc83df7cc8779 /testsuite/parseok
parentd8e610f05aafd65e2afef59088db43a2c946680f (diff)
downloadsystemtap-steved-63a7c90e365874972925e886ed50941f5620bdfe.tar.gz
systemtap-steved-63a7c90e365874972925e886ed50941f5620bdfe.tar.xz
systemtap-steved-63a7c90e365874972925e886ed50941f5620bdfe.zip
2005-06-03 Frank Ch. Eigler <fche@redhat.com>
* parse.cxx (scan): Support C and C++ comment styles. * testsuite/parseok/four.stp: Test them some ... * testsuite/parseko/nine.stp: ... and some more.
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-xtestsuite/parseok/four.stp9
1 files changed, 6 insertions, 3 deletions
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 */
+/**/
+#
+//