]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr55831.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr55831.c
1 /* PR tree-optimization/55831 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fstrict-overflow -ftree-vectorize -Wno-unused-label" } */
4
5 int g;
6 short p, q;
7
8 void
9 foo (void)
10 {
11 short a = p, b = q, i;
12
13 if (a)
14 {
15 label:
16 for (i = 0; i < 8; i++)
17 b ^= a++;
18
19 if (!b)
20 g = 0;
21 }
22 }
23
24 void
25 bar (void)
26 {
27 short a = p, b = q, i;
28
29 if (a)
30 {
31 label:
32 for (i = 0; i < 8; i++)
33 b ^= (a = a + 1);
34
35 if (!b)
36 g = 0;
37 }
38 }
39