Skip to content

Commit 0ddfadc

Browse files
authored
Merge pull request #271 from andreas-schwab/master
Fix tests on PowerPC and RISC-V
2 parents 1aac622 + 8c48fde commit 0ddfadc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/suicide.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ void abort_abort_I_repeat_abort_abort() {
5757

5858
TEST_ABORT(calling_abort) { abort_abort_I_repeat_abort_abort(); }
5959

60-
// aarch64 and mips does not trap Division by zero
61-
#if !defined(__aarch64__) && !defined(__mips__)
60+
// aarch64, mips, PowerPC and RISC-V do not trap Division by zero
61+
#if !defined(__aarch64__) && !defined(__mips__) && !defined (__powerpc__) && !defined (__riscv)
6262
volatile int zero = 0;
6363

6464
int divide_by_zero() {

0 commit comments

Comments
 (0)