This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Wrong destruction order of static objects in g++
- To: Klaus-Georg dot Adams at chemie dot uni-karlsruhe dot de, egcs-bugs at cygnus dot com
- Subject: Re: Wrong destruction order of static objects in g++
- From: mrs at wrs dot com (Mike Stump)
- Date: Mon, 8 Jun 1998 11:54:55 -0700
- Cc: jkanze at otelo dot ibmmail dot com
> 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.