]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/msan/strxfrm.cc
1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
4 #include <sanitizer/msan_interface.h>
9 const char *p
= "abcdef";
11 size_t n
= strxfrm(q
, p
, sizeof(q
));
12 assert(n
< sizeof(q
));
13 __msan_check_mem_is_initialized(q
, n
+ 1);