diff options
Diffstat (limited to 'src/test/ui/inline-asm-bad-operand.rs')
| -rw-r--r-- | src/test/ui/inline-asm-bad-operand.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/inline-asm-bad-operand.rs b/src/test/ui/inline-asm-bad-operand.rs index 37021f38cac..0ee4080fd0c 100644 --- a/src/test/ui/inline-asm-bad-operand.rs +++ b/src/test/ui/inline-asm-bad-operand.rs @@ -11,6 +11,8 @@ // Test that the compiler will catch passing invalid values to inline assembly // operands. +// ignore-emscripten + #![feature(asm)] #[repr(C)] @@ -21,6 +23,7 @@ fn main() { issue_37437(); issue_40187(); issue_54067(); + multiple_errors(); } fn issue_37433() { @@ -55,3 +58,11 @@ fn issue_54067() { asm!("mov sp, $0"::"r"(addr)); //~ ERROR E0669 } } + +fn multiple_errors() { + let addr: (u32, u32) = (1, 2); + unsafe { + asm!("mov sp, $0"::"r"(addr), //~ ERROR E0669 + "r"("hello e0669")); //~ ERROR E0669 + } +} |
