2021-03-04 07:35:11 -06:00
|
|
|
// compile-flags: -Z mir-opt-level=3
|
2020-01-01 19:10:55 -06:00
|
|
|
// build-pass
|
|
|
|
|
|
|
|
// This used to ICE due to the inling pass not examining projections
|
|
|
|
// for references to locals
|
|
|
|
|
|
|
|
pub fn parse(version: ()) {
|
|
|
|
p(&b'.', b"0");
|
|
|
|
}
|
|
|
|
#[inline(always)]
|
|
|
|
fn p(byte: &u8, s: &[u8]) {
|
|
|
|
!(s[0] == *byte);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
parse(());
|
|
|
|
}
|