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 | |
8 | int main() { |
9 | const char *td = textdomain(domainname: "abcd"); |
10 | if (td[0] == 0) { |
11 | printf(format: "Try read"); |
12 | } |
13 | return 0; |
14 | } |
15 |