OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-elf/] [pr13250-3.c] - Blame information for rev 163

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 163 khays
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.