Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83480.c
blob7b57712eaee4d405e2d9c14fa44bf3ee940f6341
1 /* PR debug/83480 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g -fselective-scheduling2 -ftree-vectorize -freorder-blocks-algorithm=simple -fnon-call-exceptions -fno-guess-branch-probability -fno-peephole2 -fno-tree-sink -fno-tree-scev-cprop" } */
5 signed char a, b;
7 void
8 foo (int x, int y)
10 for (a = 1; a != 0; ++a)
13 for (;;)
15 int c;
17 b %= (y != 0 && a != 0) + 1;
18 if (a != 0)
19 y = b;
21 for (c = 0; c < 50; ++c)
22 ++x;
24 if (a < 1)
26 while (x != 0)
29 a /= 0; /* { dg-warning "division by zero" } */