| 1 |
#! stap -p1 |
| 2 |
|
| 3 |
// invalid regex operator usage, currently should be rejected by parser |
| 4 |
probe begin { |
| 5 |
a = "this is regex" |
| 6 |
b = "but this is not match" =~ a // rhs must be literal regex |
| 7 |
c = 2 |
| 8 |
b = "but this is totally bonkers!" =~ c |
| 9 |
printf ("%s %d %d", a, b, c) |
| 10 |
} |