aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr105984.c
blob: 9143b3d3e7ed3461756c7aec1a1d9dfad94b506f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/105984 */

unsigned long long g;

static inline unsigned long long
foo (unsigned char c)
{
  g -= __builtin_mul_overflow_p (4, (unsigned char) ~c, 0);
  return g;
}

int
main ()
{
  unsigned long long x = foo (1);
  if (x != 0)
    __builtin_abort ();
  return 0;
}