1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-tree-sink-stats" } */
5 typedef unsigned char uint8_t;
7 void foo(int16_t runs
[], uint8_t alpha
[], int x
, int count
)
9 int16_t* next_runs
= runs
+ x
;
10 uint8_t* next_alpha
= alpha
+ x
;
19 runs
[0] = (int16_t)(x
);
20 runs
[x
] = (int16_t)(n
- x
);
46 /* We should not sink the next_runs = runs + x calculation after the loop. */
47 /* { dg-final { scan-tree-dump-times "Sunk statements:" 0 "sink" } } */