rust/src/test/run-pass/i8-incr.rs

12 lines
138 B
Rust

// -*- rust -*-
fn main() {
let mut x: i8 = -12i8;
let y: i8 = -12i8;
x = x + 1i8;
x = x - 1i8;
assert (x == y);
}