Fix failing test for PR 23870.
authorCary Coutant <ccoutant@gmail.com>
Sat, 20 Mar 2021 00:57:40 +0000 (17:57 -0700)
committerCary Coutant <ccoutant@gmail.com>
Sat, 20 Mar 2021 00:58:32 +0000 (17:58 -0700)
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.

gold/ChangeLog
gold/testsuite/aarch64_pr23870_bar.c
gold/testsuite/aarch64_pr23870_foo.c

index 4aec6d4683bbb217b8c42be90d0c71c61c0eeb43..9d591df0fec7c3755b76c11b6b16961e2176aa70 100644 (file)
@@ -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
index 9e19767f33b8ba86330562f673c6472bf848d211..bfbd3c5f5fd0eb062fdefcbc7a282bb817ebc3fa 100644 (file)
@@ -1,6 +1,6 @@
-void bar (void);
+int bar (void);
 
-void bar ()
+int bar ()
 {
-  return;
+  return 0x55;
 }
index ade3ee6329d7154065c42f3f8f1185126db338ad..220fd57236779f7f2d6786232364e1e5d08d142b 100644 (file)
@@ -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;
 }
This page took 0.025648 seconds and 4 git commands to generate.