Properly implement STT_COMMON
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / pr13250-3.c
CommitLineData
3e0882af
L
1#include <stdio.h>
2#include <stdlib.h>
3
4int common1[1];
5char common2[2];
6
7extern int bar ();
8
9int
10main ()
11{
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;
22}
This page took 0.200054 seconds and 4 git commands to generate.