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/] [930208-1.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
typedef union {
2
  long l;
3
  struct { char b3, b2, b1, b0; } c;
4
} T;
5
 
6
f (T u)
7
{
8
  ++u.c.b0;
9
  ++u.c.b3;
10
  return (u.c.b1 != 2 || u.c.b2 != 2);
11
}
12
 
13
main ()
14
{
15
  T u;
16
  u.c.b1 = 2;
17
  u.c.b2 = 2;
18
  u.c.b0 = ~0;
19
  u.c.b3 = ~0;
20
  if (f (u))
21
    abort();
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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