mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
93c0f382b4
All msan tests are now passing for mipsel and mips64el except for allocator_mapping.cc which is marked unsupported. llvm-svn: 279048
14 lines
280 B
C++
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;
|
|
}
|