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

12 lines
134 B
Rust
Raw Normal View History

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