C std question: while loop with two tests.

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

 



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.

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

Steve Ellcey
sellcey@xxxxxxxxxx





[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