summaryrefslogtreecommitdiff
path: root/test/scudo/alignment.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-04-16 16:02:53 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-04-16 16:02:53 +0000
commitab0bf875a5f328a6710f4e48258979ae1bc8da1c (patch)
tree66903cf9f73151825893dcc216b04c0930317a10 /test/scudo/alignment.cpp
parentabacad30a54c59ad437ccf54ec5236a8dd7f3ba9 (diff)
Diffstat (limited to 'test/scudo/alignment.cpp')
-rw-r--r--test/scudo/alignment.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/scudo/alignment.cpp b/test/scudo/alignment.cpp
index a6eca87a82248..125ad8cbe76f5 100644
--- a/test/scudo/alignment.cpp
+++ b/test/scudo/alignment.cpp
@@ -14,8 +14,7 @@ int main(int argc, char **argv)
assert(argc == 2);
if (!strcmp(argv[1], "pointers")) {
void *p = malloc(1U << 16);
- if (!p)
- return 1;
+ assert(p);
free(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(p) | 1));
}
return 0;