Skip to content

Commit 7eedb68

Browse files
committed
adjust test
1 parent c55c4c9 commit 7eedb68

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Diff for: tests/ui/asm/const-error.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
//@ only-x86_64
22
//@ needs-asm-support
3+
//@ check-pass
34

4-
// Test to make sure that we emit const errors eagerly for inline asm
5+
// Test to make sure that we emit const errors late for inline asm,
6+
// which is consistent with inline const blocks.
57

68
use std::arch::asm;
79

810
fn test<T>() {
911
unsafe {
12+
// No error here, as this does not get monomorphized.
1013
asm!("/* {} */", const 1 / 0);
11-
//~^ ERROR evaluation of
1214
}
1315
}
1416

Diff for: tests/ui/asm/const-error.stderr

-9
This file was deleted.

0 commit comments

Comments
 (0)