aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71762-3.c
blob: 4fd5f98da871681cfebe9c50283c07a09b93ceb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */

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

int y = 1;
int main()
{
  register _Bool x
  /* Add register spec for the argv parameter to main.  */
#if __i386__ || __x86_64__
      __asm__("%esi")
#endif
    ;
  if (foo (x, y))
    __builtin_abort ();
  return 0;
}