xref: /aosp_15_r20/external/compiler-rt/test/msan/Linux/mallinfo.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2 // REQUIRES: stable-runtime
3 
4 #include <assert.h>
5 #include <malloc.h>
6 
7 #include <sanitizer/msan_interface.h>
8 
main(void)9 int main(void) {
10   struct mallinfo mi = mallinfo();
11   assert(__msan_test_shadow(&mi, sizeof(mi)) == -1);
12   return 0;
13 }
14