File tree 4 files changed +10
-3
lines changed
4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ // ignore-stage1
12
+
11
13
#![ feature( asm) ]
12
14
13
15
fn main ( ) {
14
16
let a;
15
17
asm ! ( "nop" "nop" ) ;
18
+ //~^ ERROR E0660
16
19
asm ! ( "nop" "nop" : "=r" ( a) ) ;
20
+ //~^ ERROR E0660
17
21
}
Original file line number Diff line number Diff line change 1
1
error[E0660]: malformed inline assembly
2
- --> $DIR/E0660.rs:15 :5
2
+ --> $DIR/E0660.rs:17 :5
3
3
|
4
4
LL | asm!("nop" "nop");
5
5
| ^^^^^^^^^^^^^^^^^^
6
6
7
7
error[E0660]: malformed inline assembly
8
- --> $DIR/E0660.rs:16 :5
8
+ --> $DIR/E0660.rs:19 :5
9
9
|
10
10
LL | asm!("nop" "nop" : "=r"(a));
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ // ignore-stage1
12
+
11
13
#![ feature( asm) ]
12
14
13
15
fn main ( ) {
14
16
let a;
15
17
asm ! ( "nop" : "r" ( a) ) ;
18
+ //~^ ERROR E0661
16
19
}
Original file line number Diff line number Diff line change 1
1
error[E0661]: output operand constraint lacks '=' or '+'
2
- --> $DIR/E0661.rs:15 :18
2
+ --> $DIR/E0661.rs:17 :18
3
3
|
4
4
LL | asm!("nop" : "r"(a));
5
5
| ^^^
You can’t perform that action at this time.
0 commit comments