rust/tests/ui/over-constrained-vregs.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
249 B
Rust
Raw Normal View History

//@ run-pass
#![allow(unused_must_use)]
// Regression test for issue #152.
pub fn main() {
let mut b: usize = 1_usize;
while b < std::mem::size_of::<usize>() {
0_usize << b;
b <<= 1_usize;
2014-10-15 01:07:11 +00:00
println!("{}", b);
}
}