Add a test for #2152
This commit is contained in:
parent
6a6e9a22bc
commit
00318c400b
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user