rust/src/test/run-pass/i8-incr.rs
2011-07-27 15:54:33 +02:00

11 lines
133 B
Rust

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