We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5688458 commit f6adbc3Copy full SHA for f6adbc3
src/test/ui/consts/miri_unleashed/inline_asm.rs
@@ -5,8 +5,7 @@
5
6
fn main() {}
7
8
-// Make sure we catch executing bad drop functions.
9
-// The actual error is tested by the error-pattern above.
+// Make sure we catch executing inline assembly.
10
static TEST_BAD: () = {
11
unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
12
//~^ ERROR could not evaluate static initializer
src/test/ui/consts/miri_unleashed/inline_asm.stderr
@@ -1,5 +1,5 @@
1
error[E0080]: could not evaluate static initializer
2
- --> $DIR/inline_asm.rs:11:14
+ --> $DIR/inline_asm.rs:10:14
3
|
4
LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline assembly is not supported
0 commit comments