From: jjasmine Date: Wed, 22 May 2024 00:48:30 +0000 (-0700) Subject: Add a simple no-op test for asm! X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af74733fa97de1195f45ef5b1727cb933d736255;p=thirdparty%2Fgcc.git Add a simple no-op test for asm! gcc/testsuite/ChangeLog: * rust/compile/inline_asm_nop.rs: Simple test for asm! --- diff --git a/gcc/testsuite/rust/compile/inline_asm_nop.rs b/gcc/testsuite/rust/compile/inline_asm_nop.rs new file mode 100644 index 000000000000..ffe3161cd73c --- /dev/null +++ b/gcc/testsuite/rust/compile/inline_asm_nop.rs @@ -0,0 +1,10 @@ +#![feature(rustc_attrs)] + +#[rustc_builtin_macro] +macro_rules! asm { + () => {} +} + +fn main() { + asm!("nop"); +}