blob: a4b22e21028d90c52af9152915a4ccc56581469d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Regression test for #89305, where a variable was erroneously reported
// as both unused and possibly-uninitialized.
// check-pass
// needs-asm-support
#![feature(asm)]
#![warn(unused)]
fn main() {
unsafe {
let x: () = asm!("nop");
//~^ WARNING: unused variable: `x`
}
}
|