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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040308-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* This used to fail on SPARC with an unaligned memory access.  */
2
 
3
void foo(int n)
4
{
5
  struct S {
6
    int i[n];
7
    unsigned int b:1;
8
    int i2;
9
  } __attribute__ ((packed)) __attribute__ ((aligned (4)));
10
 
11
  struct S s;
12
 
13
  s.i2 = 0;
14
}
15
 
16
int main(void)
17
{
18
  foo(4);
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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