Skip to content

Commit 01e0d23

Browse files
author
James Duley
committed
Fix invalid_const_promotion test on some archs
On at least AArch64 `llvm.trap` raises SIGTRAP.
1 parent de9666f commit 01e0d23

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)