Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20110906-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* 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 0 | |
18 }; | |
19 | |
20 (*(volatile unsigned int *)((x[i])) | |
21 = (unsigned int)((unsigned int)((*(volatile unsigned int *)(x[i]))))); | |
22 } |