You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
277 B
14 lines
277 B
4 months ago
|
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
|
||
|
// REQUIRES: stable-runtime
|
||
|
|
||
|
#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;
|
||
|
}
|