mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
Generate configure for Jemalloc.
This commit is contained in:
parent
98d5d3f118
commit
4e729fcdaf
1
deps/jemalloc/VERSION
vendored
Normal file
1
deps/jemalloc/VERSION
vendored
Normal file
@ -0,0 +1 @@
|
||||
5.1.0-0-g0
|
13720
deps/jemalloc/configure
vendored
Executable file
13720
deps/jemalloc/configure
vendored
Executable file
File diff suppressed because it is too large
Load Diff
25
deps/jemalloc/test/integration/cpp/basic.cpp
vendored
Normal file
25
deps/jemalloc/test/integration/cpp/basic.cpp
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
#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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user