Article View: comp.bugs.sys5
Article #462chars in conditional expression, 3b2 C compiler
From: Dean Long
Date: Thu, 25 Dec 1986 23:23
Date: Thu, 25 Dec 1986 23:23
23 lines
1079 bytes
1079 bytes
Try these two commands on a 3b2 running SYSV unix on the following program:
cc -c sub.c # should work OK
cc -DCRASH -c sub.c # /lib/ccom should core dump
Does anyone have any ideas?
----------------------------------------------------------------------
sub()
{
char x;
int i;
i = ((x > 0) ? 1 : 0);
i = ((x >= 1) ? 1 : 0);
#ifdef CRASH
i = ((x >= 0) ? 1 : 0);
#endif
}
--
Dean Long
San Diego State Univ.
sdcsvax!sdsu!dlong
Technical Details
Message-ID:
<2489@sdsu.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!ames!sri-spam!sri-unix!hplabs!hp-sdd!ncr-sd!sdcsvax!jack!man!sdsu!dlongShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!ames!sri-spam!sri-unix!hplabs!hp-sdd!ncr-sd!sdcsvax!jack!man!sdsu!dlong From: dlong@sdsu.UUCP (Dean Long) Newsgroups: comp.bugs.sys5 Subject: chars in conditional expression, 3b2 C compiler Message-ID: <2489@sdsu.UUCP> Date: Thu, 25-Dec-86 18:23:06 EST Article-I.D.: sdsu.2489 Posted: Thu Dec 25 18:23:06 1986 Date-Received: Tue, 30-Dec-86 20:56:26 EST Reply-To: dlong@sdsu.UUCP (Dean Long) Distribution: world Organization: San Diego State University, Math/Sciences Dept. Lines: 23