aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr82381.c
blob: 3ff2c3afd4082abfbdfa77fd05adf42c752c246a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/82381 */
/* { dg-do compile } */

signed char b, h;
unsigned short c, e;
short int d, f, g;

void
foo ()
{
  if (h)
    {
      short a = -(d + c - b);
      f = e - a - -d;
    }
  if (c)
    g = 0;
}