diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-05-31 02:06:18 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:44 +0100 |
commit | a030a5295ea7b840b6696b7ff83ad2870e34cba7 (patch) | |
tree | d539e21df5bc735e36d1d92158cf5160a586badc /gcc | |
parent | f0c9a6e73d21eef5c5b3c6051f42e6e262eba1df (diff) | |
download | gcc-a030a5295ea7b840b6696b7ff83ad2870e34cba7.zip gcc-a030a5295ea7b840b6696b7ff83ad2870e34cba7.tar.gz gcc-a030a5295ea7b840b6696b7ff83ad2870e34cba7.tar.bz2 |
gccrs: Slim down the test cases
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.
Diffstat (limited to 'gcc')
5 files changed, 3 insertions, 36 deletions
diff --git a/gcc/testsuite/rust/compile/inline_asm_faulty_clobber.rs b/gcc/testsuite/rust/compile/inline_asm_faulty_clobber.rs index 1358b5e..ea3dac7 100644 --- a/gcc/testsuite/rust/compile/inline_asm_faulty_clobber.rs +++ b/gcc/testsuite/rust/compile/inline_asm_faulty_clobber.rs @@ -8,5 +8,7 @@ macro_rules! asm { 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 diff --git a/gcc/testsuite/rust/compile/inline_asm_faulty_clobber_1.rs b/gcc/testsuite/rust/compile/inline_asm_faulty_clobber_1.rs deleted file mode 100644 index 5688992..0000000 --- a/gcc/testsuite/rust/compile/inline_asm_faulty_clobber_1.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![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 diff --git a/gcc/testsuite/rust/compile/inline_asm_faulty_clobber_2.rs b/gcc/testsuite/rust/compile/inline_asm_faulty_clobber_2.rs deleted file mode 100644 index 98cd052..0000000 --- a/gcc/testsuite/rust/compile/inline_asm_faulty_clobber_2.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![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 diff --git a/gcc/testsuite/rust/compile/inline_asm_nop.rs b/gcc/testsuite/rust/compile/inline_asm_nop.rs index 7da9bef..ba21d02 100644 --- a/gcc/testsuite/rust/compile/inline_asm_nop.rs +++ b/gcc/testsuite/rust/compile/inline_asm_nop.rs @@ -8,5 +8,6 @@ macro_rules! asm { fn main() { unsafe { asm!("nop"); + asm!("nop",); } } diff --git a/gcc/testsuite/rust/compile/inline_asm_nop_2.rs b/gcc/testsuite/rust/compile/inline_asm_nop_2.rs deleted file mode 100644 index 76f53fa..0000000 --- a/gcc/testsuite/rust/compile/inline_asm_nop_2.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![feature(rustc_attrs)] - -#[rustc_builtin_macro] -macro_rules! asm { - () => {} -} - -fn main() { - unsafe { - asm!("nop",); - } -} |