| 1 |
#! stap -wgp4 |
| 2 |
|
| 3 |
# If the optimizer is working, this function will get elided, |
| 4 |
# and thus will compile successfully. |
| 5 |
|
| 6 |
function pure() %{ /* pure */ |
| 7 |
#error "should have been elided" |
| 8 |
%} |
| 9 |
|
| 10 |
|
| 11 |
probe begin |
| 12 |
{ |
| 13 |
pure () |
| 14 |
print("prevent elision of probe but, elide function") |
| 15 |
} |