Commit 4e729fcd authored by antirez's avatar antirez
Browse files

Generate configure for Jemalloc.

parent 98d5d3f1
This source diff could not be displayed because it is too large. You can view the blob instead.
#include <memory>
#include "test/jemalloc_test.h"
TEST_BEGIN(test_basic) {
auto foo = new long(4);
assert_ptr_not_null(foo, "Unexpected new[] failure");
delete foo;
// Test nullptr handling.
foo = nullptr;
delete foo;
auto bar = new long;
assert_ptr_not_null(bar, "Unexpected new failure");
delete bar;
// Test nullptr handling.
bar = nullptr;
delete bar;
}
TEST_END
int
main() {
return test(
test_basic);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment