Add a test for #2152

This commit is contained in:
topecongiro 2017-11-15 10:36:42 +09:00
parent 6a6e9a22bc
commit 00318c400b
2 changed files with 19 additions and 0 deletions

View File

@ -434,3 +434,11 @@ pub fn from_constval<'a>() -> Const<'tcx> {
};
}
}
// #2152
fn issue_2152() {
match m {
"aaaaaaaaaaaaa" | "bbbbbbbbbbbbb" | "cccccccccccccccccccccccccccccccccccccccccccc" if true => {}
"bind" | "writev" | "readv" | "sendmsg" | "recvmsg" if android && (aarch64 || x86_64) => true,
}
}

View File

@ -475,3 +475,14 @@ pub fn from_constval<'a>() -> Const<'tcx> {
};
}
}
// #2152
fn issue_2152() {
match m {
"aaaaaaaaaaaaa" | "bbbbbbbbbbbbb" | "cccccccccccccccccccccccccccccccccccccccccccc"
if true => {}
"bind" | "writev" | "readv" | "sendmsg" | "recvmsg" if android && (aarch64 || x86_64) => {
true
}
}
}