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

12 lines
134 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() {
2011-07-27 14:19:39 +02:00
let x: i8 = -12i8;
let y: i8 = -12i8;
x = x + 1i8;
x = x - 1i8;
assert (x == y);
}