tree-if-conv.c: fix ICE seen with -fno-tree-forwprop (PR tree-optimization/84178)
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20110906-1.c
blob50ea9e241b4ea0d95fedf019258faaf3cec25cd1
1 /* PR middle-end/50266 */
2 /* Testcase by <bero@arklinux.org> */
4 struct a {
5 unsigned int a;
6 unsigned int b;
7 };
9 struct a *const p = (struct a *)0x4A004100;
11 void foo(void)
13 unsigned int i = 0;
14 unsigned int *const x[] = {
15 &p->a,
16 &p->b,
20 (*(volatile unsigned int *)((x[i]))
21 = (unsigned int)((unsigned int)((*(volatile unsigned int *)(x[i])))));