From 216bee499f7831dc5f092fc7077526494f98d18b Mon Sep 17 00:00:00 2001 From: varkor Date: Sat, 2 Mar 2019 12:47:39 +0000 Subject: [PATCH] Ignore WASM on asm tests --- src/test/ui/asm/invalid-inline-asm-2.rs | 3 +++ src/test/ui/asm/invalid-inline-asm-2.stderr | 2 +- src/test/ui/asm/invalid-inline-asm.rs | 3 +++ src/test/ui/asm/invalid-inline-asm.stderr | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/ui/asm/invalid-inline-asm-2.rs b/src/test/ui/asm/invalid-inline-asm-2.rs index 7b3f1cdd679..faa7249ff81 100644 --- a/src/test/ui/asm/invalid-inline-asm-2.rs +++ b/src/test/ui/asm/invalid-inline-asm-2.rs @@ -1,3 +1,6 @@ +// ignore-wasm +// ignore-emscripten + #![feature(asm)] fn main() { diff --git a/src/test/ui/asm/invalid-inline-asm-2.stderr b/src/test/ui/asm/invalid-inline-asm-2.stderr index 3534a2ea58c..41232b9f4b0 100644 --- a/src/test/ui/asm/invalid-inline-asm-2.stderr +++ b/src/test/ui/asm/invalid-inline-asm-2.stderr @@ -1,5 +1,5 @@ error: couldn't allocate output register for constraint 'd' - --> $DIR/invalid-inline-asm-2.rs:7:9 + --> $DIR/invalid-inline-asm-2.rs:10:9 | LL | asm!("" : "=d"(a) : : : ); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/src/test/ui/asm/invalid-inline-asm.rs b/src/test/ui/asm/invalid-inline-asm.rs index 1dcded0be0b..0d9470cf173 100644 --- a/src/test/ui/asm/invalid-inline-asm.rs +++ b/src/test/ui/asm/invalid-inline-asm.rs @@ -1,3 +1,6 @@ +// ignore-wasm +// ignore-emscripten + #![feature(asm)] fn main() { diff --git a/src/test/ui/asm/invalid-inline-asm.stderr b/src/test/ui/asm/invalid-inline-asm.stderr index 11a32d3141e..53e95084f3a 100644 --- a/src/test/ui/asm/invalid-inline-asm.stderr +++ b/src/test/ui/asm/invalid-inline-asm.stderr @@ -1,5 +1,5 @@ error: couldn't allocate input reg for constraint 'a' - --> $DIR/invalid-inline-asm.rs:7:14 + --> $DIR/invalid-inline-asm.rs:10:14 | LL | unsafe { asm!("out %al, %dx" :: "a" (byte), "d" (port) :: "volatile"); } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^