X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/cxa_finalize/foo.cxx diff --git a/unit-tests/test-cases/cxa_finalize/foo.cxx b/unit-tests/test-cases/cxa_finalize/foo.cxx index 0399be1..e073170 100644 --- a/unit-tests/test-cases/cxa_finalize/foo.cxx +++ b/unit-tests/test-cases/cxa_finalize/foo.cxx @@ -21,12 +21,13 @@ * @APPLE_LICENSE_HEADER_END@ */ +#include class A { public: A() { f = 10; } - ~A() { f = 0; } + ~A() { if ( f == 0 ) abort(); f = 0; } int get() { return f; } private: int f;