You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
331 B
16 lines
331 B
// RUN: %clangxx_msan -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;
|
|
}
|