]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/asm/naked-functions.rs
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
[rust.git] / src / test / ui / asm / naked-functions.rs
index 2a57afa1a6a6ed6387d739d725275853c9e3a6c0..9e626f5711db4269f5ffe64d8a858f7b49a19c63 100644 (file)
@@ -37,6 +37,7 @@ pub struct P {
 }
 
 #[naked]
+#[allow(asm_sub_register)]
 pub unsafe extern "C" fn inc_asm(a: u32) -> u32 {
     asm!("/* {0} */", in(reg) a, options(noreturn));
     //~^ ERROR referencing function parameters is not allowed in naked functions