Add a test for the just closed issue #2426.
This commit is contained in:
parent
7fee392de5
commit
1eebb1fe87
4
src/test/run-pass/signed-shift-const-eval.rs
Normal file
4
src/test/run-pass/signed-shift-const-eval.rs
Normal file
@ -0,0 +1,4 @@
|
||||
enum test { thing = -5 >> 1u }
|
||||
fn main() {
|
||||
assert(thing as int == -3);
|
||||
}
|
Loading…
Reference in New Issue
Block a user