diff options
author | fche <fche> | 2005-08-10 23:11:15 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-10 23:11:15 +0000 |
commit | 319660888893154e17ebbe313501ede739a92dcd (patch) | |
tree | 49653a0c1916d8dd8d8539e3ed1d9ba12a61155f /testsuite/buildok/nine.stp | |
parent | c0de7a8dc7987f0d1648e36085d328e290217aaa (diff) | |
download | systemtap-steved-319660888893154e17ebbe313501ede739a92dcd.tar.gz systemtap-steved-319660888893154e17ebbe313501ede739a92dcd.tar.xz systemtap-steved-319660888893154e17ebbe313501ede739a92dcd.zip |
2005-08-10 Frank Ch. Eigler <fche@elastic.org>
PR translator/1186
* elaborate.cxx (resolve_2types): Accept a flag to tolerate unresolved
expression types.
(visit_functioncall): Call it thusly.
* translate.cxx (emit_function): Tolerate void functions.
* stap.1.in: Document possibility of void functions.
* tapset/builtin_{log,printk,warn}.stp: Make these void functions.
* testsuite/buildok/nine.stp, semok/eighteen.stp: New tests.
Diffstat (limited to 'testsuite/buildok/nine.stp')
-rwxr-xr-x | testsuite/buildok/nine.stp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/buildok/nine.stp b/testsuite/buildok/nine.stp new file mode 100755 index 00000000..d9a15276 --- /dev/null +++ b/testsuite/buildok/nine.stp @@ -0,0 +1,8 @@ +#! stap -p2 + +function f () { } +function g (arg) { } + +probe begin { + true ? f() : g(1); +} |