about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFolkert <folkert@folkertdev.nl>2024-08-02 20:45:14 +0200
committerAmanieu d'Antras <amanieu@gmail.com>2024-08-02 19:59:34 +0100
commiteb726a50e65387c348ba56f2416fc3c0b649f95e (patch)
tree7bd9614b7d2b35916362810e22243689ae9fc4fe
parent47e6db542e4a80b6c4b3aa4ab2eb2a991474f24f (diff)
downloadrust-eb726a50e65387c348ba56f2416fc3c0b649f95e.tar.gz
rust-eb726a50e65387c348ba56f2416fc3c0b649f95e.zip
add `needs-asm-support` to invalid-sym-operand
-rw-r--r--tests/ui/asm/invalid-sym-operand.rs4
-rw-r--r--tests/ui/asm/invalid-sym-operand.stderr6
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/ui/asm/invalid-sym-operand.rs b/tests/ui/asm/invalid-sym-operand.rs
index 69c4695125c..2129c20b968 100644
--- a/tests/ui/asm/invalid-sym-operand.rs
+++ b/tests/ui/asm/invalid-sym-operand.rs
@@ -1,3 +1,7 @@
+//@ needs-asm-support
+//@ ignore-nvptx64
+//@ ignore-spirv
+
 use std::arch::{asm, global_asm};
 
 // Sym operands must point to a function or static
diff --git a/tests/ui/asm/invalid-sym-operand.stderr b/tests/ui/asm/invalid-sym-operand.stderr
index 8e0676200bb..f0e6a17c25f 100644
--- a/tests/ui/asm/invalid-sym-operand.stderr
+++ b/tests/ui/asm/invalid-sym-operand.stderr
@@ -1,5 +1,5 @@
 error: invalid `sym` operand
-  --> $DIR/invalid-sym-operand.rs:23:24
+  --> $DIR/invalid-sym-operand.rs:27:24
    |
 LL |         asm!("{}", sym x);
    |                        ^ is a local variable
@@ -7,7 +7,7 @@ LL |         asm!("{}", sym x);
    = help: `sym` operands must refer to either a function or a static
 
 error: invalid `sym` operand
-  --> $DIR/invalid-sym-operand.rs:9:19
+  --> $DIR/invalid-sym-operand.rs:13:19
    |
 LL | global_asm!("{}", sym C);
    |                   ^^^^^ is an `i32`
@@ -15,7 +15,7 @@ LL | global_asm!("{}", sym C);
    = help: `sym` operands must refer to either a function or a static
 
 error: invalid `sym` operand
-  --> $DIR/invalid-sym-operand.rs:21:20
+  --> $DIR/invalid-sym-operand.rs:25:20
    |
 LL |         asm!("{}", sym C);
    |                    ^^^^^ is an `i32`