Skip to content

Commit

Permalink
Skip test case on target which supports an ABI but we expect an error
Browse files Browse the repository at this point in the history
  • Loading branch information
tdittr authored and compiler-errors committed Aug 27, 2024
1 parent f55d9ff commit 57b1c53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// The unsupported target error (E0570) does not trigger on aarch64 or arm targets
// -> so we skip this test for them
//@ ignore-aarch64
//@ ignore-arm

// gate-test-abi_c_cmse_nonsecure_call
fn main() {
let non_secure_function = unsafe {
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0658]: C-cmse-nonsecure-call ABI is experimental and subject to change
--> $DIR/gate_test.rs:4:46
--> $DIR/gate_test.rs:9:46
|
LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32, i32, i32, i32) -> i32>(
| ^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -9,7 +9,7 @@ LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0570]: `"C-cmse-nonsecure-call"` is not a supported ABI for the current target
--> $DIR/gate_test.rs:4:39
--> $DIR/gate_test.rs:9:39
|
LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32, i32, i32, i32) -> i32>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 57b1c53

Please sign in to comment.