Skip to content

Commit 7954339

Browse files
Bless new miri_unleashed test
1 parent e5b58b0 commit 7954339

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/test/ui/consts/miri_unleashed/inline_asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
fn main() {}
77

88
// Make sure we catch executing inline assembly.
9-
static TEST_BAD: () = {
9+
static TEST_BAD: () = { //~ WARN: skipping const checks
1010
unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
1111
//~^ ERROR could not evaluate static initializer
1212
//~| NOTE in this expansion of llvm_asm!
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
warning: skipping const checks
2+
--> $DIR/inline_asm.rs:9:1
3+
|
4+
LL | / static TEST_BAD: () = {
5+
LL | | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
6+
LL | |
7+
LL | |
8+
LL | |
9+
LL | | };
10+
| |__^
11+
112
error[E0080]: could not evaluate static initializer
213
--> $DIR/inline_asm.rs:10:14
314
|
@@ -6,6 +17,6 @@ LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
617
|
718
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
819

9-
error: aborting due to previous error
20+
error: aborting due to previous error; 1 warning emitted
1021

1122
For more information about this error, try `rustc --explain E0080`.

0 commit comments

Comments
 (0)