add needs-asm-support to invalid-sym-operand · rust-lang/rust@eb726a5 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1 +//@ needs-asm-support
2 +//@ ignore-nvptx64
3 +//@ ignore-spirv
4 +
1 5 use std::arch::{asm, global_asm};
2 6
3 7 // Sym operands must point to a function or static
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
1 1 error: invalid `sym` operand
2 - --> $DIR/invalid-sym-operand.rs:23:24
2 + --> $DIR/invalid-sym-operand.rs:27:24
3 3 |
4 4 LL | asm!("{}", sym x);
5 5 | ^ is a local variable
6 6 |
7 7 = help: `sym` operands must refer to either a function or a static
8 8
9 9 error: invalid `sym` operand
10 - --> $DIR/invalid-sym-operand.rs:9:19
10 + --> $DIR/invalid-sym-operand.rs:13:19
11 11 |
12 12 LL | global_asm!("{}", sym C);
13 13 | ^^^^^ is an `i32`
14 14 |
15 15 = help: `sym` operands must refer to either a function or a static
16 16
17 17 error: invalid `sym` operand
18 - --> $DIR/invalid-sym-operand.rs:21:20
18 + --> $DIR/invalid-sym-operand.rs:25:20
19 19 |
20 20 LL | asm!("{}", sym C);
21 21 | ^^^^^ is an `i32`