mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-04 16:26:46 +00:00
c5e51926dc
llvm-svn: 208303
16 lines
336 B
C++
16 lines
336 B
C++
// RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t
|
|
|
|
#include <assert.h>
|
|
#include <sanitizer/msan_interface.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
const char *p = "abcdef";
|
|
char q[10];
|
|
size_t n = strxfrm(q, p, sizeof(q));
|
|
assert(n < sizeof(q));
|
|
__msan_check_mem_is_initialized(q, n + 1);
|
|
return 0;
|
|
}
|