summaryrefslogtreecommitdiffstats
path: root/tests/ui/asm/issue-72570.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/asm/issue-72570.rs')
-rw-r--r--tests/ui/asm/issue-72570.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/asm/issue-72570.rs b/tests/ui/asm/issue-72570.rs
new file mode 100644
index 000000000..bb1381634
--- /dev/null
+++ b/tests/ui/asm/issue-72570.rs
@@ -0,0 +1,12 @@
+// compile-flags: -Zsave-analysis
+// needs-asm-support
+// Also test for #72960
+
+use std::arch::asm;
+
+fn main() {
+ unsafe {
+ asm!("", in("invalid") "".len());
+ //~^ ERROR: invalid register `invalid`: unknown register
+ }
+}