Add test for SwitchInt on 128bit integers

This commit is contained in:
bjorn3 2020-06-29 11:23:49 +02:00
parent 4a21cff957
commit e87651c3f2

View File

@ -111,6 +111,17 @@ fn main() {
let kind = Nums::NegOne;
assert_eq!(-1i128, kind as i128);
let options = [1u128];
match options[0] {
1 => (),
0 => loop {},
v => panic(v),
};
}
fn panic(_: u128) {
panic!();
}
#[target_feature(enable = "sse2")]