The test program in target-supports.exp is broken, since it doesn't preclude the use of cleanups instead. Indeed, the init/cleanup3.C seems to be essentially identical to the target-supports test.
Any suggestions that doesn't essentially reverse this situation? I.e. I could switch the target-supports test to grep the assembly for __cxa_atexit, but I suspect that would more or less automatically cause the cleanup3.C test to pass. r~