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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920908-2.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
/* The bit-field below would have a problem if __INT_MAX__ is too
2
   small.  */
3
#if __INT_MAX__ < 2147483647
4
int
5
main (void)
6
{
7
  exit (0);
8
}
9
#else
10
/*
11
CONF:m68k-sun-sunos4.1.1
12
OPTIONS:-O
13
*/
14
struct T
15
{
16
unsigned i:8;
17
unsigned c:24;
18
};
19
f(struct T t)
20
{
21
struct T s[1];
22
s[0]=t;
23
return(char)s->c;
24
}
25
main()
26
{
27
struct T t;
28
t.i=0xff;
29
t.c=0xffff11;
30
if(f(t)!=0x11)abort();
31
exit(0);
32
}
33
#endif

powered by: WebSVN 2.1.0

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