1// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2
3#include <assert.h>
4#include <malloc.h>
5
6#include <sanitizer/msan_interface.h>
7
8int main(void) {
9 struct mallinfo mi = mallinfo();
10 assert(__msan_test_shadow(&mi, sizeof(mi)) == -1);
11 return 0;
12}
13

source code of compiler-rt/test/msan/Linux/mallinfo.cpp