Rollup merge of #72682 - JohnTitor:mir-tests, r=RalfJung
Add test for #66930 Closes #66930 Closes #67558 They're fixed by #72424. I skipped adding `--emit=mir` flag to src/test/ui/issues/issue-25145.rs as a regression test since the root cause seems the same and it should be run with `check-pass`, not `run-pass` so we should duplicate that test. r? @RalfJung
This commit is contained in:
commit
71512e425f
1 changed files with 11 additions and 0 deletions
11
src/test/ui/mir/issue-66930.rs
Normal file
11
src/test/ui/mir/issue-66930.rs
Normal file
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue