☰
Debian Codegraph
@
1:21.1.8-7
1:21.1.8-13
1:21.1.8-12
1:21.1.8-11
1:21.1.8-10
/
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
setlocale.cpp
☽
☼
compiler-rt/test/sanitizer_common/TestCases/setlocale.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}