提交 57c6a0b1 编写于 作者: V varkor

Remove invalid ASM tests

These still fail on some architectures.
上级 216bee49
// ignore-wasm
// ignore-emscripten
#![feature(asm)]
fn main() {
let a: usize;
unsafe {
asm!("" : "=d"(a) : : : );
//~^ ERROR couldn't allocate output register for constraint 'd'
}
}
error: couldn't allocate output register for constraint 'd'
--> $DIR/invalid-inline-asm-2.rs:10:9
|
LL | asm!("" : "=d"(a) : : : );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
// ignore-wasm
// ignore-emscripten
#![feature(asm)]
fn main() {
let byte = 0;
let port = 0x80;
unsafe { asm!("out %al, %dx" :: "a" (byte), "d" (port) :: "volatile"); }
//~^ ERROR couldn't allocate input reg for constraint 'a'
}
error: couldn't allocate input reg for constraint 'a'
--> $DIR/invalid-inline-asm.rs:10:14
|
LL | unsafe { asm!("out %al, %dx" :: "a" (byte), "d" (port) :: "volatile"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册