------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  
2005-09-30 11:55 -------
// testcase where we produce wrong code even with checking enabled
// (taken from bug 24142)

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;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24141

Reply via email to