brintos

brintos / llvm-project-archived public Read only

0
0
Text · 280 B · a2818e6 Raw
14 lines · cpp
1// RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t2 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((char *)s);10  if (res)11    printf("%zd\n", strlen(res));12  return 0;13}14