From 254f61ae43a12a26ca7fc35bb221eba1186efd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 5 Jun 2020 12:03:43 +0200 Subject: [PATCH] add test for #72960 Fixes #72960 --- src/test/ui/asm/issue-72570.rs | 2 ++ src/test/ui/asm/issue-72570.stderr | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/ui/asm/issue-72570.rs b/src/test/ui/asm/issue-72570.rs index f34525a664ebe..678534657cb31 100644 --- a/src/test/ui/asm/issue-72570.rs +++ b/src/test/ui/asm/issue-72570.rs @@ -1,4 +1,6 @@ +// compile-flags: -Zsave-analysis // only-x86_64 +// Also test for #72960 #![feature(asm)] diff --git a/src/test/ui/asm/issue-72570.stderr b/src/test/ui/asm/issue-72570.stderr index 49013a23ced2d..fa5792688b252 100644 --- a/src/test/ui/asm/issue-72570.stderr +++ b/src/test/ui/asm/issue-72570.stderr @@ -1,5 +1,5 @@ error: invalid register `invalid`: unknown register - --> $DIR/issue-72570.rs:7:18 + --> $DIR/issue-72570.rs:9:18 | LL | asm!("", in("invalid") "".len()); | ^^^^^^^^^^^^^^^^^^^^^^