Skip to content

Commit 0857dde

Browse files
authored
Rollup merge of #102181 - inquisitivecrystal:issue-100878-test, r=Mark-Simulacrum
Add regression test This adds a regression test for issue #100878. Closes #100878.
2 parents b02062e + ad05b32 commit 0857dde

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This checks that the const-eval ICE in issue #100878 does not recur.
2+
//
3+
// build-pass
4+
pub fn bitshift_data(data: [u8; 1]) -> u8 {
5+
data[0] << 8
6+
}
7+
8+
fn main() {}

0 commit comments

Comments
 (0)