1 // RUN: %clang_scudo %s -o %t
2 // RUN: not %run %t pointers 2>&1 | FileCheck %s
4 // Tests that a non MinAlignment aligned pointer will trigger the associated
5 // error on deallocation.
12 int main(int argc
, char **argv
) {
14 if (!strcmp(argv
[1], "pointers")) {
15 void *p
= malloc(1U << 16);
17 free((void *)((uintptr_t)p
| 1));
22 // CHECK: ERROR: misaligned pointer when deallocating address