textdomain is a part of -lintl on BSDs. In GLIBC it's in libc. We assume that -lintl will need to be rebuilt with sanitizers in order to sanitize programs using its features. This is a proper continuation of D41013. The original patch has been reverted (adding -lintl). llvm-svn: 324810
14 lines
238 B
C++
14 lines
238 B
C++
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
|
|
// UNSUPPORTED: netbsd, freebsd
|
|
|
|
#include <libintl.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
const char *td = textdomain("abcd");
|
|
if (td[0] == 0) {
|
|
printf("Try read");
|
|
}
|
|
return 0;
|
|
}
|