This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Wrong destruction order of static objects in g++


> Date: Thu, 4 Jun 1998 14:57:32 +0200
> From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
> To: egcs-bugs@cygnus.com
> Cc: jkanze@otelo.ibmmail.com

> Is there a way in the old-deja framework to compare the output of a
> program to a default?

Consider a program that stores construction (destruction) state in a
global variable, and imagine that you check the order during
destruction.  If it is wrong, you you set fail = 1, fail defaults to
zero, and at the end of main you return fail.

This is the way we normally handle such test cases.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]