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