libgo: update to Go1.10beta1
[official-gcc.git] / gcc / testsuite / c-c++-common / Wparentheses-1.c
blobed5060838297d9eb48e5570c7fa1d3c09ae8e0b2
1 /* PR c/70436 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wparentheses" } */
5 int a, b, c[101], d[101], e[101], f[101];
7 void
8 f1 (void)
10 int i;
12 if (a) /* { dg-warning "ambiguous" } */
13 #pragma GCC ivdep
14 for (i = 0; i < 100; i++)
15 if (b)
16 c[i] = d[i] + e[i];
17 else
18 f[i] = d[i] * e[i];
20 if (a)
21 #pragma GCC ivdep
22 for (i = 0; i < 100; i++)
24 if (b)
25 c[i] = d[i] + e[i];
26 else
27 f[i] = d[i] * e[i];
30 if (a)
31 #pragma GCC ivdep
32 for (i = 0; i < 100; i++)
34 if (b)
35 c[i] = d[i] + e[i];
37 else
38 f[i] = d[i] * e[i];