xref: /llvm-project/compiler-rt/test/msan/textdomain.cpp (revision 02012a78b8e7d44341247059184350cbb4898e79)
1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2 // textdomain() is not a part of libc on FreeBSD and NetBSD.
3 // UNSUPPORTED: target={{.*(netbsd|freebsd).*}}
4 
5 #include <libintl.h>
6 #include <stdio.h>
7 
main()8 int main() {
9   const char *td = textdomain("abcd");
10   if (td[0] == 0) {
11     printf("Try read");
12   }
13   return 0;
14 }
15