Index: compiler-rt/trunk/test/msan/Linux/mallinfo.cc =================================================================== --- compiler-rt/trunk/test/msan/Linux/mallinfo.cc +++ compiler-rt/trunk/test/msan/Linux/mallinfo.cc @@ -0,0 +1,12 @@ +// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t + +#include +#include + +#include + +int main(void) { + struct mallinfo mi = mallinfo(); + assert(__msan_test_shadow(&mi, sizeof(mi)) == -1); + return 0; +} Index: compiler-rt/trunk/test/msan/mallinfo.cc =================================================================== --- compiler-rt/trunk/test/msan/mallinfo.cc +++ compiler-rt/trunk/test/msan/mallinfo.cc @@ -1,12 +0,0 @@ -// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t - -#include -#include - -#include - -int main(void) { - struct mallinfo mi = mallinfo(); - assert(__msan_test_shadow(&mi, sizeof(mi)) == -1); - return 0; -}