llvm-capstone/compiler-rt/test/msan/ctermid.cc
Daniel Sanders 93c0f382b4 [mips][msan] Fix all the XPASSes following r278793 and r278795
All msan tests are now passing for mipsel and mips64el except for
allocator_mapping.cc which is marked unsupported.

llvm-svn: 279048
2016-08-18 10:50:46 +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;
}