X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..04b5575d8fc9b95f96f2a621169e45d995ee8a41:/unit-tests/test-cases/cxa_finalize/foo.cxx?ds=sidebyside 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;