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

11 lines
131 B
Rust

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