summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr49238.c
blob: fd8443a8f086bf788abb9459a38de4684fecf166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/49238 */
extern int bar (void);

void
foo (unsigned long long a, int b)
{
  int i;

  if (b)
    for (a = -12; a >= 10; a = bar ())
      break;
  else
    return;

  for (i = 0; i < 10; i += 10)
    if ((i == bar ()) | (bar () >= a))
      bar ();
}