[PATCH] [libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers.
Jonathan Roelofs
jonathan at codesourcery.com
Tue Dec 9 13:30:53 PST 2014
================
Comment at: test/support/count_new.hpp:48
@@ +47,3 @@
+ --new_called;
+ ++delete_called;
+ }
----------------
Hmm... I just realized that these have really weird names. new_called doesn't count the number of times new was called, rather it counts the number of objects allocated by new that haven't been deleted yet (i.e. the tests don't care if there are extra allocations and deallocations between checks).
http://reviews.llvm.org/D6562
More information about the cfe-commits
mailing list