Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!KIRK.ASTON.AC.UK!RIDDCJ From: RIDDCJ@KIRK.ASTON.AC.UK Newsgroups: comp.sys.atari.st Subject: (none) Message-ID: <8906061626.AA13393@ucbvax.Berkeley.EDU> Date: 6 Jun 89 10:51:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 29 This C program is part (program 28) of the Plum Hall ANSI suite. I tried compiling it using Mark Williams 3.0.5 - it crashed with an illegal instruction error, and 4 bombs! Anyone know why? The code doesn't look desperately strange... -------------------------------cut here---------------------------------------- /* 28: 3.3.3.3 Unary plus */ #include main() , int start = (printf("started\n")); int i = 3; if (+i == 3) printf("success\n"); return 0; - -------------------------------end--------------------------------------------- Chris ______________________________________________________________________________ / SNAIL: Chris Ridd, Dept. Comp Sci, Aston University, Birmingham, UK. \ | JANET: riddcj@uk.ac.aston.kirk | | ARPA: riddcj%kirk.aston.ac.uk@cunyvm.cuny.edu | | UUCP: ...psuvax1!cunyvm.bitnet!kirk.aston.ac.uk!riddcj | | BITNET: riddcj@kirk.aston.ac.uk@ukacrl | \______________________________________________________________________________/ / "The voice from the Outer Worlds..." \ \______________________________________________________________________________/ / "C programmers do it in libraries..." \ \______________________________________________________________________________/