Article View: comp.sys.amiga.tech
Article #4026Re: MANX 5.0 Bugs
From: Corey Gehman
Date: Wed, 13 Jun 1990 02:53
Date: Wed, 13 Jun 1990 02:53
39 lines
1169 bytes
1169 bytes
Just so everyone can prove it to {him/her}self. The following short program:
/* test manx 5.0 bug */
int array[20];
main()
{
int i;
for (i=0;i<20;i++) array[i]=1;
for (i=1;i<20;i++) array[i] += array[i-1];
for (i=0;i<20;i++) printf("array[%d]=%d\n",i,array[i]);
}
compiled with no cc flags and linking clib only.
prints out the following:
array[0]=2
array[1]=2
array[2]=2
...
array[18]=2
array[19]=1
Now, unless, I'm a completely idiot (which is possible) that's wrong.
Right?
So, the bottom line. Manx cann't add. Simple.
--
Corey Gehman
cg377170@eng.clemson.edu
Technical Details
Message-ID:
<9332@hubcap.clemson.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!emory!hubcap!cygnus!cg377170References:
<9281@hubcap.clemson.edu> <1990Jun13.022216.202@laguna.ccsf.caltech.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!emory!hubcap!cygnus!cg377170 From: cg377170@cygnus.uucp (Corey Gehman) Newsgroups: comp.sys.amiga.tech Subject: Re: MANX 5.0 Bugs Keywords: BUGS Message-ID: <9332@hubcap.clemson.edu> Date: 13 Jun 90 02:53:23 GMT References: <9281@hubcap.clemson.edu> <1990Jun13.022216.202@laguna.ccsf.caltech.edu> Sender: news@hubcap.clemson.edu Reply-To: cg377170@eng.clemson.edu (Corey Gehman) Organization: Clemson University Engineering Department Lines: 39