[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Posix / strxfrm.c
blobd08af1b3565fdce6fcc6434b5ef7cc0b907b8fa3
1 // RUN: %clang -O0 %s -o %t && %run %t
2 // UNSUPPORTED: darwin
4 #include <assert.h>
5 #include <locale.h>
6 #include <string.h>
8 int main(int argc, char **argv) {
9 char q[10];
10 size_t n = strxfrm(q, "abcdef", sizeof(q));
11 assert(n < sizeof(q));
13 char q2[100];
14 locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
15 n = strxfrm_l(q2, "qwerty", sizeof(q2), loc);
16 assert(n < sizeof(q2));
18 freelocale(loc);
19 return 0;