summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/sixteen.stp
blob: 1b8cb88097f5aa4664379edb682761440e851b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! stap -p2

# all these variables should be type-inferred automatically because the
# operators are not overloaded
probe begin {
  a / b; c % d; e + f; g - h; i >> j; k << l; m & n; o | p; q && r; s || t;
  u . v; x * y; z ^ aa; ~ bb; ! cc; - dd; ++ ee; -- ff;
}

probe begin {
 a /= b; c %= d; e += f;  g-= h; i >>= j; k <<= l; m &= n; o |= p;
 u .= v; x *= y; z ^= aa;
}