From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a0e076952eca80d4,start X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Ada and C++ asserts. Date: 1996/07/15 Message-ID: <31EA6D42.2B35@gsfc.nasa.gov>#1/1 X-Deja-AN: 168413915 references: content-type: text/plain; charset=us-ascii organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (Win95; U) Date: 1996-07-15T00:00:00+00:00 List-Id: Nasser Abbasi wrote: > > ... (simple example of assert, where Ada "works", and C++ "fails") > C++ version > ============ > .... now build and run > > $CC t2.cc > $a.out > Assertion failed: i == 1, file t2.cc, line 8 > Abort (core dumped) > ^^^^^^^^^^^^^ Since this is the ANSI defined behaviour of a failed assertion, why do you claim it is not working? At least for ANSI C, assert is supposed to call Abort if the assertion fails. I assume the C++ behaviour is similarly defined. > > -- > Nasser Abbasi. -- - Stephe