1 /* Verify straight-line strength reduction for array
4 elems[n-1] is reduced to elems + n * 4 + 0xffffffff * 4, only when
5 pointers are of the same size as that of int (assuming 4 bytes). */
8 /* { dg-options "-O2" } */
12 unsigned long elms
[1];
15 void __attribute__((noinline
))
16 foo (struct data
*dst
, unsigned int n
)
18 dst
->elms
[n
- 1] &= 1;