1// RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t
2
3#include <sanitizer/msan_interface.h>
4#include <stdio.h>
5#include <string.h>
6
7int main(void) {
8 unsigned char s[L_ctermid + 1];
9 char *res = ctermid(s: (char *)s);
10 if (res)
11 printf(format: "%zd\n", strlen(s: res));
12 return 0;
13}
14

source code of compiler-rt/test/msan/ctermid.cpp