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

11 lines
131 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// -*- rust -*-
2010-06-23 21:03:09 -07:00
fn main() {
let i8 x = -12i8;
let i8 y = -12i8;
x = x + 1i8;
x = x - 1i8;
assert (x == y);
}