Skip to content

Commit

Permalink
Rollup merge of #102181 - inquisitivecrystal:issue-100878-test, r=Mar…
Browse files Browse the repository at this point in the history
…k-Simulacrum

Add regression test

This adds a regression test for issue #100878.

Closes #100878.
  • Loading branch information
matthiaskrgr authored Sep 26, 2022
2 parents b02062e + ad05b32 commit 0857dde
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/ui/consts/const-eval/issue-100878.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 0857dde

Please sign in to comment.