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.
|
// RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t
|
|
|
|
#include <sanitizer/msan_interface.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
unsigned char s[L_ctermid + 1];
|
|
char *res = ctermid((char *)s);
|
|
if (res)
|
|
printf("%zd\n", strlen(res));
|
|
return 0;
|
|
}
|