Add a test for #2171
This commit is contained in:
parent
f987946078
commit
44d81d9e0e
2 changed files with 20 additions and 0 deletions
|
@ -188,3 +188,13 @@ fn issue1524() {
|
|||
let f = |x| {x};
|
||||
let f = |x| x;
|
||||
}
|
||||
|
||||
fn issue2171() {
|
||||
foo(|| unsafe {
|
||||
if PERIPHERALS {
|
||||
loop {}
|
||||
} else {
|
||||
PERIPHERALS = true;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -220,3 +220,13 @@ fn issue1524() {
|
|||
let f = |x| x;
|
||||
let f = |x| x;
|
||||
}
|
||||
|
||||
fn issue2171() {
|
||||
foo(|| unsafe {
|
||||
if PERIPHERALS {
|
||||
loop {}
|
||||
} else {
|
||||
PERIPHERALS = true;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue