Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 29, 2024
1 parent c55c4c9 commit 7eedb68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 4 additions & 2 deletions tests/ui/asm/const-error.rs
Original file line number Diff line number Diff line change
@@ -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
}
}

Expand Down
9 changes: 0 additions & 9 deletions tests/ui/asm/const-error.stderr

This file was deleted.

0 comments on commit 7eedb68

Please sign in to comment.