Skip to content

Commit

Permalink
Fix run-make tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Oct 12, 2023
1 parent e50a877 commit 9962864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/run-make/intrinsic-unreachable/exit-ret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use std::arch::asm;

#[deny(unreachable_code)]
#[inline(never)]
pub fn exit(n: usize) -> i32 {
unsafe {
// Pretend this asm is an exit() syscall.
Expand Down
1 change: 1 addition & 0 deletions tests/run-make/intrinsic-unreachable/exit-unreachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::arch::asm;
use std::intrinsics;

#[allow(unreachable_code)]
#[inline(never)]
pub fn exit(n: usize) -> i32 {
unsafe {
// Pretend this asm is an exit() syscall.
Expand Down

0 comments on commit 9962864

Please sign in to comment.