bolt/deps/llvm-18.1.8/compiler-rt/test/msan/Linux/mallinfo2.cpp
2025-02-14 19:21:04 +01:00

13 lines
278 B
C++

// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
// REQUIRES: glibc-2.33
#include <assert.h>
#include <malloc.h>
#include <sanitizer/msan_interface.h>
int main(void) {
struct mallinfo2 mi2 = mallinfo2();
assert(__msan_test_shadow(&mi2, sizeof(mi2)) == -1);
return 0;
}