Add a test for #2152
This commit is contained in:
parent
6a6e9a22bc
commit
00318c400b
2 changed files with 19 additions and 0 deletions
|
|
@ -434,3 +434,11 @@ impl<'tcx> 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 @@ impl<'tcx> 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…
Add table
Add a link
Reference in a new issue