aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2021-03-19 17:57:40 -0700
committerCary Coutant <ccoutant@gmail.com>2021-03-19 17:58:32 -0700
commitb218a839358197c1b62200481dc14eb3c8a9a38f (patch)
treebbe00eda5dbdfe36adcc942b5ff008a45b3ba802 /gold/testsuite
parent1de96e5de988ec7517639a9de533c8be95b2785e (diff)
downloadgdb-b218a839358197c1b62200481dc14eb3c8a9a38f.zip
gdb-b218a839358197c1b62200481dc14eb3c8a9a38f.tar.gz
gdb-b218a839358197c1b62200481dc14eb3c8a9a38f.tar.bz2
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.
Diffstat (limited to 'gold/testsuite')
-rw-r--r--gold/testsuite/aarch64_pr23870_bar.c6
-rw-r--r--gold/testsuite/aarch64_pr23870_foo.c6
2 files changed, 6 insertions, 6 deletions
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;
}