1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2 // RUN: %clangxx_msan -O3 -g %s -o %t && %run %t
8 #include <sanitizer/msan_interface.h>
11 char *p
= (char *)alloca(16);
12 assert(0 == __msan_test_shadow(p
, 16));
13 assert(0 == __msan_test_shadow(p
+ 15, 1));
16 assert(-1 == __msan_test_shadow(p
, 16));
19 char * volatile q
= (char *)alloca(42 * x
);
20 assert(-1 == __msan_test_shadow(p
, 16));
24 assert(-1 == __msan_test_shadow(p
, 16));