Changeset View
Changeset View
Standalone View
Standalone View
test/scudo/valloc.c
// RUN: %clang_scudo %s -o %t | // RUN: %clang_scudo %s -o %t | ||||
// RUN: %run %t valid 2>&1 | // RUN: %run %t valid 2>&1 | ||||
// RUN: not %run %t invalid 2>&1 | // RUN: not %run %t invalid 2>&1 | ||||
// RUN: %env_scudo_opts=allocator_may_return_null=1 %run %t invalid 2>&1 | // RUN: %env_scudo_opts=allocator_may_return_null=1 %run %t invalid 2>&1 | ||||
// UNSUPPORTED: android | // UNSUPPORTED: android, win32 | ||||
// Tests that valloc and pvalloc work as intended. | // Tests that valloc and pvalloc work as intended. | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <malloc.h> | #include <malloc.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <string.h> | #include <string.h> | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |