Add regression test for issue #100878

This commit is contained in:
inquisitivecrystal 2022-09-23 03:09:16 -07:00
parent 77e7e88567
commit ad05b32fee
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// This checks that the const-eval ICE in issue #100878 does not recur.
//
// build-pass
pub fn bitshift_data(data: [u8; 1]) -> u8 {
data[0] << 8
}
fn main() {}