This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C std question: while loop with two tests.
- From: Steve Ellcey <sellcey at imgtec dot com>
- To: Anupam Chahar <aschahar at gmail dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 6 May 2013 08:56:28 -0700
- Subject: Re: C std question: while loop with two tests.
- References: <062f044f-849e-4adf-9f35-6fb0d137d71d at BAMAIL02 dot ba dot imgtec dot org> <CAMWMY7w4Dp2=ns9m+4Ey=fxQ33v24Qaue59N6QRdKNeSQ2mx_w at mail dot gmail dot com>
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