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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [align-nest.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
 
2
void foo(int n)
3
{
4
  typedef struct
5
  {
6
    int value;
7
  } myint;
8
 
9
  struct S
10
  {
11
    int i[n];
12
    unsigned int b:1;
13
    myint mi;
14
  } __attribute__ ((packed)) __attribute__ ((aligned (4)));
15
 
16
  struct S s[2];
17
  int k;
18
 
19
  for (k = 0; k < 2; k ++)
20
    s[k].mi.value = 0;
21
}
22
 
23
int main ()
24
{
25
  foo (2);
26
  return 0;
27
}
28
 

powered by: WebSVN 2.1.0

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