Fix type compatibility for types with flexible array member 2/2 [PR113688,PR114713...
[gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / pr90009.c
blob58d1039dd8d9984f894084d84a5134887f664480
1 /* { dg-do run } */
3 #include <stdlib.h>
5 #define N 100
7 int data[N];
9 int
10 main (void)
12 int n = N, b = 3;
13 #pragma acc parallel num_workers(2)
15 int c;
16 if (n)
17 c = 0;
18 else
19 c = b;
21 #pragma acc loop worker
22 for (int i = 0; i < n; i++)
23 data[i] = 1;
25 if (c)
26 data[0] = 2;
29 for (int i = 0; i < n; i++)
30 if (data[i] != 1)
31 abort ();
33 return 0;