Remove unused variable never used
[ppcg.git] / tests / live_out.c
blobc13965ea29c39a24db0fb7d47e1666a563f8bd17
1 #include <stdlib.h>
3 /* Check that a write access is not removed from the live-out
4 * accesses only because a strict subset of the (potentially)
5 * accessed elements are killed by a later write.
6 */
7 int main()
9 int A[10];
11 A[1] = 0;
12 #pragma scop
13 int i = 1;
14 i = i * i;
15 A[i] = 1;
16 A[0] = 0;
17 #pragma endscop
18 if (A[1] != 1)
19 return EXIT_FAILURE;
21 return EXIT_SUCCESS;