add needs-asm-support to tests/ui/asm/unsupported-option.rs

This commit is contained in:
Folkert 2024-07-27 19:27:20 +02:00
parent 3e4ddc39b8
commit 33b5ca99b7
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C
3 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,4 @@
//@ needs-asm-support
//@ run-rustfix //@ run-rustfix
use std::arch::global_asm; use std::arch::global_asm;

View File

@ -1,3 +1,4 @@
//@ needs-asm-support
//@ run-rustfix //@ run-rustfix
use std::arch::global_asm; use std::arch::global_asm;

View File

@ -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