summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/optimize.stp
blob: 28ccb46cc1943af461ae5482fe54131b08e2e798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! stap -p2

# We count on the optimizer to blow away these ridiculous
# expressions, since they have no effect on the output.

global b

function zoo (x) {
  return "tada" + x
}

probe begin {
  b <<< "hello"
  a = b + 2
  zoo (zoo (5))
  b = "goodbye"
  no . $such . $target + $variable
}