rust/src/test/run-pass/u8-incr-decr.rs
Patrick Walton 147a2d655f Un-revert "Use different syntax for checks that matter to typestate", fixing the problem.
This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118.
2011-05-02 17:50:46 -07:00

13 lines
292 B
Rust

// -*- rust -*-
// These constants were chosen because they aren't used anywhere
// in the rest of the generated code so they're easily grep-able.
fn main() {
let u8 x = 19u8; // 0x13
let u8 y = 35u8; // 0x23
x = x + (7u8); // 0x7
y = y - (9u8); // 0x9
assert (x == y);
}