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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020910-1.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* The bit-field below would have a problem if __INT_MAX__ is too
2
   small.  */
3
#if __INT_MAX__ < 2147483647
4
int a;
5
#else
6
unsigned int  x0  = 0;
7
 
8
typedef struct {
9
  unsigned int  field1 : 20;
10
  unsigned int  field2 : 12;
11
} XX;
12
 
13
static XX yy;
14
 
15
static void foo (void)
16
{
17
  yy.field1 = (unsigned int ) (&x0);
18
}
19
#endif

powered by: WebSVN 2.1.0

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