add needs-asm-support
to tests/ui/asm/unsupported-option.rs
This commit is contained in:
parent
3e4ddc39b8
commit
33b5ca99b7
@ -1,3 +1,4 @@
|
|||||||
|
//@ needs-asm-support
|
||||||
//@ run-rustfix
|
//@ run-rustfix
|
||||||
|
|
||||||
use std::arch::global_asm;
|
use std::arch::global_asm;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//@ needs-asm-support
|
||||||
//@ run-rustfix
|
//@ run-rustfix
|
||||||
|
|
||||||
use std::arch::global_asm;
|
use std::arch::global_asm;
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
error: the `nomem` option cannot be used with `global_asm!`
|
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));
|
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
|
||||||
| ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
|
| ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
|
||||||
|
|
||||||
error: the `readonly` option cannot be used with `global_asm!`
|
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));
|
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
|
||||||
| ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly
|
| ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly
|
||||||
|
|
||||||
error: the `noreturn` option cannot be used with `global_asm!`
|
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));
|
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
|
||||||
| ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly
|
| ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly
|
||||||
|
Loading…
Reference in New Issue
Block a user