Skip to content

Commit

Permalink
add needs-asm-support to tests/ui/asm/unsupported-option.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Jul 27, 2024
1 parent 3e4ddc3 commit 33b5ca9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/ui/asm/unsupported-option.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ needs-asm-support
//@ run-rustfix

use std::arch::global_asm;
Expand Down
1 change: 1 addition & 0 deletions tests/ui/asm/unsupported-option.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ needs-asm-support
//@ run-rustfix

use std::arch::global_asm;
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/asm/unsupported-option.stderr
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
error: the `nomem` option cannot be used with `global_asm!`
--> $DIR/unsupported-option.rs:7:25
--> $DIR/unsupported-option.rs:8:25
|
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
| ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly

error: the `readonly` option cannot be used with `global_asm!`
--> $DIR/unsupported-option.rs:7:32
--> $DIR/unsupported-option.rs:8:32
|
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
| ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly

error: the `noreturn` option cannot be used with `global_asm!`
--> $DIR/unsupported-option.rs:7:42
--> $DIR/unsupported-option.rs:8:42
|
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
| ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly
Expand Down

0 comments on commit 33b5ca9

Please sign in to comment.