repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
textdomain.cpp
blob
d7266ac321572ffcc8ab080e3569098f6077c2dc
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
(
"abcd"
);
10
if
(
td
[
0
] ==
0
) {
11
printf
(
"Try read"
);
12
}
13
return
0
;
14
}