Skip to content

Commit e069524

Browse files
committed
Add test for #66930
1 parent 4512721 commit e069524

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/ui/mir/issue-66930.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
// compile-flags: --emit=mir,link
3+
// Regression test for #66930, this ICE requires `--emit=mir` flag.
4+
5+
static UTF8_CHAR_WIDTH: [u8; 0] = [];
6+
7+
pub fn utf8_char_width(b: u8) -> usize {
8+
UTF8_CHAR_WIDTH[b as usize] as usize
9+
}
10+
11+
fn main() {}

0 commit comments

Comments
 (0)