diff options
-rw-r--r-- | gold/ChangeLog | 7 | ||||
-rw-r--r-- | gold/testsuite/aarch64_pr23870_bar.c | 6 | ||||
-rw-r--r-- | gold/testsuite/aarch64_pr23870_foo.c | 6 |
3 files changed, 13 insertions, 6 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 4aec6d4..9d591df 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2021-03-19 Cary Coutant <ccoutant@gmail.com> + + 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 <holger.berger@googlemail.com> PR gold/26541 diff --git a/gold/testsuite/aarch64_pr23870_bar.c b/gold/testsuite/aarch64_pr23870_bar.c index 9e19767..bfbd3c5 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 ade3ee6..220fd57 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; } |