ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git] / ld / testsuite / ld-elf / pr13250-3.c
bloba22767094b02f88d3fd1fe8a05fe92d588530a46
1 #include <stdio.h>
2 #include <stdlib.h>
4 int common1[1];
5 char common2[2];
7 extern int bar ();
9 int
10 main ()
12 int i;
13 if (bar () != -1)
14 abort ();
15 if (common1[0] != -1)
16 abort ();
17 for (i = 0; i < sizeof (common2)/ sizeof (common2[0]); i++)
18 if (common2[i] != 0)
19 abort ();
20 printf ("PASS\n");
21 return 0;