aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr82913.c
blob: 5cf555732041728a561794181438d3f2ab2da2b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR rtl-optimization/82913 */

unsigned int a;
unsigned long int b;

int
foo (void)
{
  ++a;
  b = 0;
}

unsigned long int
bar (int x)
{
  if (!foo () || !a)
    {
      int c = a != b;
      if (c != x)
        return a;
    }
  return 0;
}