summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr24142.c
blob: eed3e8bc67934079f3423ba334d7e1002661f580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
void abort (void);

int f (int a, int b)
{
  if (a == 1)
    a = 0;
  if (b == 0)
    a = 1;
  if (a != 0)
    return 0;
  return 1;
}

int main (void)
{
  if (f (1, 1) != 1)
    abort ();
  return 0;
}