rust/src/test/run-pass/signed-shift-const-eval.rs
2012-05-30 16:02:48 -07:00

5 lines
77 B
Rust

enum test { thing = -5 >> 1u }
fn main() {
assert(thing as int == -3);
}