Skip to content

Commit 8f4b86d

Browse files
pietroalbinikennytm
authored andcommitted
Rollup merge of rust-lang#55575 - parched:trap, r=RalfJung
Fix invalid_const_promotion test on some archs On at least AArch64 `llvm.trap` raises SIGTRAP. r? @RalfJung
2 parents 7e80177 + 01e0d23 commit 8f4b86d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/run-pass/invalid_const_promotion.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fn check_status(status: std::process::ExitStatus)
3939
use std::os::unix::process::ExitStatusExt;
4040

4141
assert!(status.signal() == Some(libc::SIGILL)
42+
|| status.signal() == Some(libc::SIGTRAP)
4243
|| status.signal() == Some(libc::SIGABRT));
4344
}
4445

0 commit comments

Comments
 (0)