2021-05-13 10:20:51 -04:00
|
|
|
// revisions: mir thir
|
|
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
2021-08-17 18:43:09 -07:00
|
|
|
// needs-asm-support
|
2021-05-13 10:20:51 -04:00
|
|
|
|
2021-12-10 00:15:33 +00:00
|
|
|
use std::arch::asm;
|
|
|
|
|
2021-05-13 10:20:51 -04:00
|
|
|
fn main() {
|
|
|
|
asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block
|
|
|
|
}
|