1 // RUN: %clang_asan %s -o %t -framework Foundation
2 // RUN: %run %t 2>&1 | FileCheck %s
4 #import <Foundation/Foundation.h>
5 #include <malloc/malloc.h>
7 int main(int argc, char *argv[]) {
9 fprintf(stderr, "obj = %p\n", obj);
10 size_t size = malloc_size(obj);
11 fprintf(stderr, "size = 0x%zx\n", size);
12 fprintf(stderr, "Done.\n");