summaryrefslogtreecommitdiff
path: root/tests/ui/asm/const-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/asm/const-error.rs')
-rw-r--r--tests/ui/asm/const-error.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/asm/const-error.rs b/tests/ui/asm/const-error.rs
index 40d0590c33e..8c722906284 100644
--- a/tests/ui/asm/const-error.rs
+++ b/tests/ui/asm/const-error.rs
@@ -1,14 +1,16 @@
//@ only-x86_64
//@ needs-asm-support
+//@ check-pass
-// Test to make sure that we emit const errors eagerly for inline asm
+// Test to make sure that we emit const errors late for inline asm,
+// which is consistent with inline const blocks.
use std::arch::asm;
fn test<T>() {
unsafe {
+ // No error here, as this does not get monomorphized.
asm!("/* {} */", const 1 / 0);
- //~^ ERROR evaluation of
}
}