(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
compile/
20110906-1.c
       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  }