summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests/asan_test.cc
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-06-20 20:28:39 +0000
committerAlexander Potapenko <glider@google.com>2012-06-20 20:28:39 +0000
commit50e788b724c79d8f80c6bd545b14eb1e64e619e0 (patch)
tree28ec5f33590619d9fd221b3eed7f8b3ec2a82ed4 /compiler-rt/lib/asan/tests/asan_test.cc
parentdf7dffb34b459fb05e19e9fa283021665c9f6380 (diff)
downloadbcm5719-llvm-50e788b724c79d8f80c6bd545b14eb1e64e619e0.tar.gz
bcm5719-llvm-50e788b724c79d8f80c6bd545b14eb1e64e619e0.zip
Add a test for NSURL deallocation (issue 70)
llvm-svn: 158843
Diffstat (limited to 'compiler-rt/lib/asan/tests/asan_test.cc')
-rw-r--r--compiler-rt/lib/asan/tests/asan_test.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc
index 3646a278e0e..80af8b0adf1 100644
--- a/compiler-rt/lib/asan/tests/asan_test.cc
+++ b/compiler-rt/lib/asan/tests/asan_test.cc
@@ -2049,6 +2049,13 @@ TEST(AddressSanitizerMac, NSObjectOOB) {
// Make sure that our allocators are used for NSObjects.
EXPECT_DEATH(TestOOBNSObjects(), "heap-buffer-overflow");
}
+
+// Make sure that correct pointer is passed to free() when deallocating a
+// NSURL object.
+// See http://code.google.com/p/address-sanitizer/issues/detail?id=70.
+TEST(AddressSanitizerMac, DISABLED_NSURLDeallocation) {
+ TestNSURLDeallocation();
+}
#endif // __APPLE__
// Test that instrumentation of stack allocations takes into account
OpenPOWER on IntegriCloud