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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20110906-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
/* PR middle-end/50266 */
2
/* Testcase by <bero@arklinux.org> */
3
 
4
struct a {
5
 unsigned int a;
6
 unsigned int b;
7
};
8
 
9
struct a *const p = (struct a *)0x4A004100;
10
 
11
void foo(void)
12
{
13
 unsigned int i = 0;
14
 unsigned int *const x[] = {
15
  &p->a,
16
  &p->b,
17
 
18
 };
19
 
20
 (*(volatile unsigned int *)((x[i]))
21
   = (unsigned int)((unsigned int)((*(volatile unsigned int *)(x[i])))));
22
}

powered by: WebSVN 2.1.0

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