Home | History | Annotate | Download | only in ld-elf
      1 #include <stdio.h>
      2 #include <stdlib.h>
      3 
      4 int common1[1];
      5 char common2[2];
      6 
      7 extern int bar ();
      8 
      9 int
     10 main ()
     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 }
     23