From: Cary Coutant Date: Sat, 20 Mar 2021 00:57:40 +0000 (-0700) Subject: Fix failing test for PR 23870. X-Git-Tag: binutils-2_37~1386 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b218a839358197c1b62200481dc14eb3c8a9a38f;p=thirdparty%2Fbinutils-gdb.git Fix failing test for PR 23870. gold/ PR gold/pr23870 * testsuite/aarch64_pr23870_bar.c: Return a magic value. * testsuite/aarch64_pr23870_foo.c: Check the magic value and return success or failure. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 4aec6d4683b..9d591df0fec 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2021-03-19 Cary Coutant + + PR gold/pr23870 + * testsuite/aarch64_pr23870_bar.c: Return a magic value. + * testsuite/aarch64_pr23870_foo.c: Check the magic value and return + success or failure. + 2021-03-19 Holger Berger PR gold/26541 diff --git a/gold/testsuite/aarch64_pr23870_bar.c b/gold/testsuite/aarch64_pr23870_bar.c index 9e19767f33b..bfbd3c5f5fd 100644 --- a/gold/testsuite/aarch64_pr23870_bar.c +++ b/gold/testsuite/aarch64_pr23870_bar.c @@ -1,6 +1,6 @@ -void bar (void); +int bar (void); -void bar () +int bar () { - return; + return 0x55; } diff --git a/gold/testsuite/aarch64_pr23870_foo.c b/gold/testsuite/aarch64_pr23870_foo.c index ade3ee6329d..220fd572367 100644 --- a/gold/testsuite/aarch64_pr23870_foo.c +++ b/gold/testsuite/aarch64_pr23870_foo.c @@ -1,6 +1,6 @@ -void foo (void (*bar)(void)); +int foo (int (*bar)(void)); -void foo (void (*bar)(void)) +int foo (int (*bar)(void)) { - bar(); + return bar() == 0x55 ? 0 : 1; }