Files
clang-p2996/compiler-rt/test/msan/ctermid.cpp
Fangrui Song d21b3d346a compiler-rt: Rename .cc file in test/msan to .cpp
Like r367463, but for test/msan.

llvm-svn: 367653
2019-08-02 06:07:05 +00:00

14 lines
280 B
C++

// 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;
}