File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11+ // ignore-stage1
12+
1113#![ feature( asm) ]
1214
1315fn main ( ) {
1416 let a;
1517 asm ! ( "nop" "nop" ) ;
18+ //~^ ERROR E0660
1619 asm ! ( "nop" "nop" : "=r" ( a) ) ;
20+ //~^ ERROR E0660
1721}
Original file line number Diff line number Diff line change 11error[E0660]: malformed inline assembly
2- --> $DIR/E0660.rs:15 :5
2+ --> $DIR/E0660.rs:17 :5
33 |
44LL | asm!("nop" "nop");
55 | ^^^^^^^^^^^^^^^^^^
66
77error[E0660]: malformed inline assembly
8- --> $DIR/E0660.rs:16 :5
8+ --> $DIR/E0660.rs:19 :5
99 |
1010LL | asm!("nop" "nop" : "=r"(a));
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11+ // ignore-stage1
12+
1113#![ feature( asm) ]
1214
1315fn main ( ) {
1416 let a;
1517 asm ! ( "nop" : "r" ( a) ) ;
18+ //~^ ERROR E0661
1619}
Original file line number Diff line number Diff line change 11error[E0661]: output operand constraint lacks '=' or '+'
2- --> $DIR/E0661.rs:15 :18
2+ --> $DIR/E0661.rs:17 :18
33 |
44LL | asm!("nop" : "r"(a));
55 | ^^^
You can’t perform that action at this time.
0 commit comments