This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Mon, 2013-05-06 at 17:48 +0200, Anupam Chahar wrote:
> It has two different while loops
> I guess it will break down into this:
> 
> 
> int foo(int x)
> {
>       while (1)
>       {
>           if (x>0) continue;
>        }
> 
> 
>        while(0);
> }
> 
> 
> So it is correct

> 
> 
> -- 
> Anupam Chahar

Thanks, that makes sense now.

Steve Ellcey
sellcey@imgtec.com





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]