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
/
sanitizer_common
/
TestCases
/
setlocale.cpp
blob
e20e8b2f4a92aece9c4ec08a852c3b78638e98bd
1
// RUN: %clangxx -O0 %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <locale.h>
5
#include <stdlib.h>
6
7
int
main
(
void
) {
8
char
*
locale
=
setlocale
(
LC_ALL
,
""
);
9
assert
(
locale
);
10
if
(
locale
[
0
])
11
exit
(
0
);
12
return
0
;
13
}