ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git] / ld / testsuite / ld-elf / pr26580-a.c
blob5557997e70632101ad127e6feccced27ed0f4c17
1 #include <stdio.h>
3 extern void __attribute__ ((weak)) foo (void);
5 char x, y, z;
7 long
8 lowest_align (void *a, void *b, void *c)
10 unsigned long bits = (long) a | (long) b | (long) c;
11 return bits & -bits;
14 int
15 main (void)
17 printf ("library %sloaded\n", &foo ? "" : "not ");
18 printf ("alignment %ld\n", lowest_align (&x, &y, &z));
19 return 0;