1 extern "C" void abort ();
5 long long int bs[7] = { 9, 11, 1, 1, 1, 13, 15 };
6 long long int (&b)[7] = bs;
7 int es[3] = { 5, 0, 5 };
9 int fs[5] = { 6, 7, 0, 0, 9 };
11 int gs[4] = { 1, 0, 0, 2 };
13 int hs[3] = { 0, 1, 4 };
15 int ks[4][2] = { { 5, 6 }, { 0, 0 }, { 0, 0 }, { 7, 8 } };
20 long long (*&t)[2] = ts;
21 struct U { U (); ~U () {}; U (const U &); int u[4]; };
26 u[0] = 0; u[1] = 1; u[2] = 2; u[3] = 3;
32 u[0] = r.u[0]; u[1] = r.u[1]; u[2] = r.u[2]; u[3] = r.u[3];
36 foo (int &n, int *&c, long long int *&d, int (&m)[3], int *&r, int (&o)[4], int *&p, int (&q)[4][2])
41 #pragma omp taskloop in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
42 in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
43 in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
44 in_reduction (*: s[1:2], t[2:2][:]) firstprivate (u) nogroup
45 for (i = 0; i < 2; i++)
82 int ps[3] = { 0, 1, 4 };
84 int qs[4][2] = { { 5, 6 }, { 0, 0 }, { 0, 0 }, { 7, 8 } };
86 long long sb[4] = { 5, 1, 1, 6 };
87 long long tb[5][2] = { { 9, 10 }, { 11, 12 }, { 1, 1 }, { 1, 1 }, { 13, 14 } };
88 int ms[3] = { 5, 0, 5 };
89 int os[4] = { 1, 0, 0, 2 };
97 long long int ds[] = { 1, 1 };
98 long long int (&d)[2] = ds;
100 int rs[5] = { 6, 7, 0, 0, 9 };
104 #pragma omp taskloop reduction (+: a, c) reduction (*: b[2 * n:3 * n], d) \
105 reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
106 reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
107 reduction (*: t[2:2][:], s[1:n + 1]) firstprivate (u)
108 for (i = 0; i < 4; i++)
127 for (j = 0; j < 2; j++)
128 #pragma omp task in_reduction (+: a, c[:2]) \
129 in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
130 in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
131 in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
132 in_reduction (*: s[n:2], t[2:2][:]) firstprivate (u)
150 long long int *dp = d;
153 foo (n, cp, dp, m, rp, o, pp, q);
181 if (d[0] != 1LL << (8 + 4)
184 || m[1] != 19 * 16 + 6 * 8 + 16 * 4
188 || r[2] != 21 * 16 + 7 * 8 + 8 * 4
189 || r[3] != 23 * 16 + 18 * 8 + 8 * 4
192 || o[1] != 25 * 16 + 29 * 8 + 9 * 4
193 || o[2] != 27 * 16 + 18 * 8 + 10 * 4
197 if (a[0] != 7 * 16 + 4 * 8 + 2 * 4
198 || a[1] != 17 * 16 + 5 * 8 + 3 * 4
199 || b[0] != 9 || b[1] != 11
200 || b[2] != 1LL << (16 + 4)
201 || b[3] != 1LL << (8 + 4)
202 || b[4] != 1LL << (16 + 8)
203 || b[5] != 13 || b[6] != 15
204 || c[0] != 6 * 16 + 4 * 8 + 4 * 4
205 || c[1] != 5 * 8 + 9 * 4
207 || e[1] != 19 * 16 + 6 * 8 + 16 * 4
211 || f[2] != 21 * 16 + 7 * 8 + 8 * 4
212 || f[3] != 23 * 16 + 18 * 8 + 8 * 4
215 || g[1] != 25 * 16 + 29 * 8 + 9 * 4
216 || g[2] != 27 * 16 + 18 * 8 + 10 * 4
218 || h[0] != 29 * 16 + 19 * 8 + 11 * 4
219 || h[1] != 1 || h[2] != 4
220 || k[0][0] != 5 || k[0][1] != 6
221 || k[1][0] != 31 * 16 + 17 * 8
224 || k[2][1] != 33 * 16 + 15 * 4
225 || k[3][0] != 7 || k[3][1] != 8
226 || p[0] != 29 * 16 + 19 * 8 + 11 * 4
227 || p[1] != 1 || p[2] != 4
228 || q[0][0] != 5 || q[0][1] != 6
229 || q[1][0] != 31 * 16 + 17 * 8
232 || q[2][1] != 33 * 16 + 15 * 4
233 || q[3][0] != 7 || q[3][1] != 8
235 || sb[1] != 1LL << (16 + 4)
238 || tb[0][0] != 9 || tb[0][1] != 10 || tb[1][0] != 11 || tb[1][1] != 12
239 || tb[2][0] != 1LL << (16 + 8)
240 || tb[2][1] != 1LL << 4
241 || tb[3][0] != 1LL << 8
242 || tb[3][1] != 1LL << (16 + 4)
243 || tb[4][0] != 13 || tb[4][1] != 14)