llvm-project/polly/lib/External/ppcg/tests/dead.c

24 lines
320 B
C

#include <stdlib.h>
int main()
{
int a[1000], b[1000];
for (int i = 0; i < 1000; ++i)
a[i] = i;
#pragma scop
for (int i = 0; i < 1000; ++i) {
int c;
int d;
c = a[i];
d = c;
b[i] = c;
}
#pragma endscop
for (int i = 0; i < 1000; ++i)
if (b[i] != a[i])
return EXIT_FAILURE;
return EXIT_SUCCESS;
}