1*7c3d14c8STreehugger Robot // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t >%t.out 2>&1 2*7c3d14c8STreehugger Robot // RUN: FileCheck %s < %t.out 3*7c3d14c8STreehugger Robot 4*7c3d14c8STreehugger Robot #include <stdint.h> 5*7c3d14c8STreehugger Robot #include <sanitizer/msan_interface.h> 6*7c3d14c8STreehugger Robot main(void)7*7c3d14c8STreehugger Robotint main(void) { 8*7c3d14c8STreehugger Robot unsigned long long x = 0; // For 8-byte alignment. 9*7c3d14c8STreehugger Robot char x_s[4] = {0x87, 0x65, 0x43, 0x21}; 10*7c3d14c8STreehugger Robot __msan_partial_poison(&x, &x_s, sizeof(x_s)); 11*7c3d14c8STreehugger Robot __msan_print_shadow(&x, sizeof(x_s)); 12*7c3d14c8STreehugger Robot return 0; 13*7c3d14c8STreehugger Robot } 14*7c3d14c8STreehugger Robot 15*7c3d14c8STreehugger Robot // CHECK: Shadow map of [{{.*}}), 4 bytes: 16*7c3d14c8STreehugger Robot // CHECK: 0x{{.*}}: 87654321 ........ ........ ........ 17