gcc/testsuite/ChangeLog:
* rust/compile/inline_asm_faulty_clobber.rs: compress
the test
* rust/compile/inline_asm_nop.rs: compress
the test
* rust/compile/inline_asm_faulty_clobber_1.rs: Removed.
* rust/compile/inline_asm_faulty_clobber_2.rs: Removed.
* rust/compile/inline_asm_nop_2.rs: Removed.
fn main() {
unsafe {
asm!("nop", clobber_abi()); // { dg-error "at least one abi must be provided as an argument to 'clobber_abi'" }
+ asm!("nop", clobber_abi+); // { dg-error "expected '\\(', found '\\+'" }
+ asm!("nop", clobber_abi); // { dg-error "expected '\\(', found end of macro arguments" }
}
}
\ No newline at end of file
+++ /dev/null
-#![feature(rustc_attrs)]
-
-#[rustc_builtin_macro]
-macro_rules! asm {
- () => {}
-}
-
-fn main() {
- unsafe {
- asm!("nop", clobber_abi); // { dg-error "expected '\\(', found end of macro arguments" }
- }
-}
\ No newline at end of file
+++ /dev/null
-#![feature(rustc_attrs)]
-
-#[rustc_builtin_macro]
-macro_rules! asm {
- () => {}
-}
-
-fn main() {
- unsafe {
- asm!("nop", clobber_abi+); // { dg-error "expected '\\(', found '\\+'" }
- }
-}
\ No newline at end of file
fn main() {
unsafe {
asm!("nop");
+ asm!("nop",);
}
}
+++ /dev/null
-#![feature(rustc_attrs)]
-
-#[rustc_builtin_macro]
-macro_rules! asm {
- () => {}
-}
-
-fn main() {
- unsafe {
- asm!("nop",);
- }
-}