Skip to content

Commit 3948210

Browse files
Update test with //@ needs-asm-support
1 parent 97cc700 commit 3948210

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/ui/asm/fail-const-eval-issue-121099.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ build-fail
2+
//@ needs-asm-support
23
#![feature(asm_const)]
34

45
use std::arch::global_asm;

tests/ui/asm/fail-const-eval-issue-121099.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0080]: evaluation of constant value failed
2-
--> $DIR/fail-const-eval-issue-121099.rs:8:31
2+
--> $DIR/fail-const-eval-issue-121099.rs:9:31
33
|
44
LL | global_asm!("/* {} */", const 1 << 500);
55
| ^^^^^^^^ attempt to shift left by `500_i32`, which would overflow
66

77
error[E0080]: evaluation of constant value failed
8-
--> $DIR/fail-const-eval-issue-121099.rs:10:31
8+
--> $DIR/fail-const-eval-issue-121099.rs:11:31
99
|
1010
LL | global_asm!("/* {} */", const 1 / 0);
1111
| ^^^^^ attempt to divide `1_i32` by zero

0 commit comments

Comments
 (0)