Skip to content

Commit

Permalink
Add test for #66930
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed May 28, 2020
1 parent 4512721 commit e069524
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/mir/issue-66930.rs
@@ -0,0 +1,11 @@
// check-pass
// compile-flags: --emit=mir,link
// Regression test for #66930, this ICE requires `--emit=mir` flag.

static UTF8_CHAR_WIDTH: [u8; 0] = [];

pub fn utf8_char_width(b: u8) -> usize {
UTF8_CHAR_WIDTH[b as usize] as usize
}

fn main() {}

0 comments on commit e069524

Please sign in to comment.