Re: C std question: while loop with two tests.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 6 May 2013, Steve Ellcey  wrote:

I was using delta to cutdown a program and wound up with something like this.
Is this really legal C?  GCC doesn't complain about it.

Let me reformat it a bit:

int foo(int x)
{
  while (1)
  {
    if (x > 0) continue;
  }

  while (0)
  ;
}

(missing a return maybe?)




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux