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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr25805.c] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* When -fzero-initialized-in-bss was in effect, we used to only allocate
2
   storage for d1.a.  */
3
/* { dg-do run } */
4
/* { dg-options "" } */
5
extern void abort (void);
6
extern void exit (int);
7
 
8
struct { int a; int x[]; } d1 = { 0, 0 };
9
int d2 = 0;
10
 
11
int
12
main ()
13
{
14
  d2 = 1;
15
  if (sizeof (d1) != sizeof (int))
16
    abort ();
17
  if (d1.x[0] != 0)
18
    abort ();
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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