Skip to content

Commit eb726a5

Browse files
folkertdevAmanieu
authored andcommitted
add needs-asm-support to invalid-sym-operand
1 parent 47e6db5 commit eb726a5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/ui/asm/invalid-sym-operand.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//@ needs-asm-support
2+
//@ ignore-nvptx64
3+
//@ ignore-spirv
4+
15
use std::arch::{asm, global_asm};
26

37
// Sym operands must point to a function or static

tests/ui/asm/invalid-sym-operand.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
error: invalid `sym` operand
2-
--> $DIR/invalid-sym-operand.rs:23:24
2+
--> $DIR/invalid-sym-operand.rs:27:24
33
|
44
LL | asm!("{}", sym x);
55
| ^ is a local variable
66
|
77
= help: `sym` operands must refer to either a function or a static
88

99
error: invalid `sym` operand
10-
--> $DIR/invalid-sym-operand.rs:9:19
10+
--> $DIR/invalid-sym-operand.rs:13:19
1111
|
1212
LL | global_asm!("{}", sym C);
1313
| ^^^^^ is an `i32`
1414
|
1515
= help: `sym` operands must refer to either a function or a static
1616

1717
error: invalid `sym` operand
18-
--> $DIR/invalid-sym-operand.rs:21:20
18+
--> $DIR/invalid-sym-operand.rs:25:20
1919
|
2020
LL | asm!("{}", sym C);
2121
| ^^^^^ is an `i32`

0 commit comments

Comments
 (0)