aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr108573.c
blob: 5dd18043b2b6574e10ac18e22ec50c719eae597a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR debug/108573 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */

unsigned g;

int bar (void);
int baz (int);

void
foo (unsigned short s, long l)
{
  unsigned u = bar ();
  s &= __builtin_add_overflow_p (0, u, 0);
  s %= g;
  s -= l >> s;
  baz (s);
}