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/] [20040308-1.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 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.