Wrong destruction order of static objects in g++

Mike Stump mrs@wrs.com
Mon Jun 8 11:55:00 GMT 1998


> 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.



More information about the Gcc-bugs mailing list