diff options
author | fche <fche> | 2005-07-26 22:40:14 +0000 |
---|---|---|
committer | fche <fche> | 2005-07-26 22:40:14 +0000 |
commit | 54dfabe9e604ec06cdb5550f58420c60d0cbdbd9 (patch) | |
tree | 2dc021fd5534f57a51235a9598cec6cec9ed2342 /testsuite/parseok | |
parent | f05bc729c752cee5eb11fde9193eea12a21b0d12 (diff) | |
download | systemtap-steved-54dfabe9e604ec06cdb5550f58420c60d0cbdbd9.tar.gz systemtap-steved-54dfabe9e604ec06cdb5550f58420c60d0cbdbd9.tar.xz systemtap-steved-54dfabe9e604ec06cdb5550f58420c60d0cbdbd9.zip |
2005-07-26 Frank Ch. Eigler <fche@redhat.com>
Support %{ embedded-c %}
* staptree.h (embeddedcode): New statement subtype. Stub support in
visitors.
* staptree.cxx: Ditto.
* parse.cxx: Parse %{ / %}. Accept "_" as identifier leading char.
(parse_probe): Simplify calling convention.
* elaborate.h: Store embedded code.
* elaborate.cxx: Pass it.
* translate.cxx: Transcribe it. Return some dropped module init/exit
code.
* Makefile.am: Add buildok/buildko tests.
* Makefile.in: Regenerated.
* main.cxx: Return EXIT_SUCCESS/FAILURE even for weird rc.
* testsuite/parseok/nine.stp: Test _identifiers.
* testsuite/transko/*.stp: Tweak to force -p3 rather than -p2 errors.
* testsuite/semok/transko.stp: ... and keep it that way in the future.
* testsuite/parse*/*: Some new tests for %{ %}.
* testsuite/build*/*: New tests for -p4.
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-x | testsuite/parseok/nine.stp | 4 | ||||
-rwxr-xr-x | testsuite/parseok/twelve.stp | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/testsuite/parseok/nine.stp b/testsuite/parseok/nine.stp index 13e40cbf..3582907a 100755 --- a/testsuite/parseok/nine.stp +++ b/testsuite/parseok/nine.stp @@ -9,7 +9,7 @@ probe two { a = b c = d - e = f(); - g = h; + _e = $f(); + _g = h_; ; } diff --git a/testsuite/parseok/twelve.stp b/testsuite/parseok/twelve.stp new file mode 100755 index 00000000..5b8a3932 --- /dev/null +++ b/testsuite/parseok/twelve.stp @@ -0,0 +1,9 @@ +#! stap -p1 + +%{ +/* hello world */ +%} + +function foo (p1, p2) %{ + /* goodbye world */ +%} |