summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71762-1.c
blob: d20cbc32c97c919768ca5132467ec066706d2b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */
/* { dg-additional-options "-fdisable-rtl-init-regs" } */

static _Bool
foo (_Bool a, _Bool b)
{
  int x = a && ! b;
  return x != 0;
}

int y = 1;
int main()
{
  _Bool x;
  if (foo (x, y))
    __builtin_abort ();
  return 0;
}