File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ //@ needs-asm-support
2+ //@ ignore-nvptx64
3+ //@ ignore-spirv
4+
15use std:: arch:: { asm, global_asm} ;
26
37// Sym operands must point to a function or static
Original file line number Diff line number Diff line change 11error: invalid `sym` operand
2- --> $DIR/invalid-sym-operand.rs:23 :24
2+ --> $DIR/invalid-sym-operand.rs:27 :24
33 |
44LL | asm!("{}", sym x);
55 | ^ is a local variable
66 |
77 = help: `sym` operands must refer to either a function or a static
88
99error: invalid `sym` operand
10- --> $DIR/invalid-sym-operand.rs:9 :19
10+ --> $DIR/invalid-sym-operand.rs:13 :19
1111 |
1212LL | global_asm!("{}", sym C);
1313 | ^^^^^ is an `i32`
1414 |
1515 = help: `sym` operands must refer to either a function or a static
1616
1717error: invalid `sym` operand
18- --> $DIR/invalid-sym-operand.rs:21 :20
18+ --> $DIR/invalid-sym-operand.rs:25 :20
1919 |
2020LL | asm!("{}", sym C);
2121 | ^^^^^ is an `i32`
You can’t perform that action at this time.
0 commit comments