diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-04-30 09:54:57 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-04-30 09:54:57 -0400 |
commit | 49628242c239feb617b838bb5d90488386645bd6 (patch) | |
tree | db3102573ddc2b12457aa4da3dc8b3f2b4c104cf /testsuite/semok/optimize.stp | |
parent | b167928be06ff251ff9a6f2f0c528dd3ece527df (diff) | |
parent | ba6f838d2471c57fc3d8fc6d325766ff95ce108a (diff) | |
download | systemtap-steved-49628242c239feb617b838bb5d90488386645bd6.tar.gz systemtap-steved-49628242c239feb617b838bb5d90488386645bd6.tar.xz systemtap-steved-49628242c239feb617b838bb5d90488386645bd6.zip |
Merge branch 'master' into pr6429-comp-unwindsyms
* master:
PR6466: broad side-effect free statement elision
Made utrace probes more robust.
2008-04-27 William Cohen <wcohen@redhat.com>
2008-04-27 William Cohen <wcohen@redhat.com>
Diffstat (limited to 'testsuite/semok/optimize.stp')
-rwxr-xr-x | testsuite/semok/optimize.stp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/testsuite/semok/optimize.stp b/testsuite/semok/optimize.stp index bcf8ac04..a728bd66 100755 --- a/testsuite/semok/optimize.stp +++ b/testsuite/semok/optimize.stp @@ -1,4 +1,4 @@ -#! stap -p2 +#! stap -wp2 # We count on the optimizer to blow away these ridiculous # expressions, since they have no effect on the output. @@ -21,3 +21,19 @@ probe begin { probe begin{for(i=1;i-=2;i++);} probe begin{while(i+=2);} probe begin{if(i=j);} + +global ii +probe begin{for(ii=1;ii-=2;ii++);} +probe begin{while(ii+=2);} +probe begin{if(ii=j);} + +# bug #6466 +global goo + +probe begin { while (24) ; } +probe begin { for (2<$i; zoo(333); poo) ; } +probe begin { foreach (x in goo) goo[x]+1; } +probe begin { foo = $bar; if (foo) {} } +probe begin { { { { } } } } +function useful () { return 1 } +probe begin { println (useful()) } /* don't elide this one! */ |