summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/msan/mallinfo.cc
blob: 3f308683077efff750d588ae098c23f5c7db463c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t

#include <assert.h>
#include <malloc.h>

#include <sanitizer/msan_interface.h>

int main(void) {
  struct mallinfo mi = mallinfo();
  assert(__msan_test_shadow(&mi, sizeof(mi)) == -1);
  return 0;
}
OpenPOWER on IntegriCloud