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/] [921123-2.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
typedef struct
2
{
3
  unsigned short b0, b1, b2, b3;
4
} four_quarters;
5
 
6
four_quarters x;
7
int a, b;
8
 
9
void f (four_quarters j)
10
{
11
  b = j.b2;
12
  a = j.b3;
13
}
14
 
15
main ()
16
{
17
  four_quarters x;
18
  x.b0 = x.b1 = x.b2 = 0;
19
  x.b3 = 38;
20
  f(x);
21
  if (a != 38)
22
    abort();
23
  exit (0);
24
}

powered by: WebSVN 2.1.0

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