1 // RUN: %clangxx_msan -O0 -g %s -o %t && not %run %t 2>&1 | FileCheck %s
3 // Verify that CHECK handler prints a stack on CHECK fail.
8 // Allocate chunk from the secondary allocator to trigger CHECK(IsALigned())
10 void *p
= malloc(8 << 20);
11 free(reinterpret_cast<char*>(p
) + 1);
12 // CHECK: MemorySanitizer: bad pointer
13 // CHECK: MemorySanitizer: CHECK failed