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`