gpu_group.c: check_can_be_private_live_ranges: drop unused variable
[ppcg.git] / tests / struct4.c
blobd249ff4271616b48337280bc41374d339b995ebd
1 #include <stdlib.h>
3 struct s {
4 int a;
5 int b;
6 };
8 int main()
10 int a[10];
12 for (int i = 0; i < 10; ++i)
13 a[i] = 0;
14 #pragma scop
15 for (int i = 0; i < 10; ++i) {
16 struct s b;
17 b.a = 1;
18 b.b = i;
19 a[i] = b.a + b.b;
21 #pragma endscop
22 for (int i = 0; i < 10; ++i)
23 if (a[i] != 1 + i)
24 return EXIT_FAILURE;
26 return EXIT_SUCCESS;