aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/opeq.rs
blob: d99ebb0449a3187c2e81594df52b1e77f0810a00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// -*- rust -*-

fn main() {
  let int x = 1;

  x *= 2;
  log x;
  check (x == 2);

  x += 3;
  log x;
  check (x == 5);

  x *= x;
  log x;
  check (x == 25);

  x /= 5;
  log x;
  check (x == 5);
}