elf: Fix tst-align3

The elf/tst-align3.c declares the function using a wrong prototype.

Checked on aarch64-linux-gnu.
This commit is contained in:
Adhemerval Zanella 2022-01-18 14:36:45 -03:00
parent c90363403b
commit 716c4027b0

View File

@ -22,7 +22,7 @@
int bar __attribute__ ((aligned (ALIGN))) = 1; int bar __attribute__ ((aligned (ALIGN))) = 1;
extern int do_load_test (void); extern void do_load_test (void);
static int static int
do_test (void) do_test (void)
@ -30,7 +30,8 @@ do_test (void)
printf ("bar: %p\n", &bar); printf ("bar: %p\n", &bar);
TEST_VERIFY (is_aligned (&bar, ALIGN) == 0); TEST_VERIFY (is_aligned (&bar, ALIGN) == 0);
return do_load_test (); do_load_test ();
return 0;
} }
#include <support/test-driver.c> #include <support/test-driver.c>