]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/cxa_finalize/foo.cxx
dyld-360.22.tar.gz
[apple/dyld.git] / unit-tests / test-cases / cxa_finalize / foo.cxx
index 0399be1b82cbbb0fee1b5a08a2dd86183c75ca00..e0731709e7423a71dfd10fc1bd316717f2e62ab8 100644 (file)
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#include <stdlib.h>
 
 class A
 {
 public:
        A() { f = 10; }
-       ~A() { f = 0; }
+       ~A() { if ( f == 0 ) abort(); f = 0; }
        int get() { return f; }
 private:
        int f;