xref: /llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/nl_langinfo.cpp (revision 975fa725063fe33aba02164a53c4ef66662e68d8)
1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
2 //
3 // UNSUPPORTED: darwin, target={{.*(linux|solaris).*}}
4 
5 #include <langinfo.h>
6 
7 #include <stdio.h>
8 
main(void)9 int main(void) {
10   printf("nl_langinfo\n");
11 
12   char *info = nl_langinfo(DAY_1);
13 
14   printf("DAY_1='%s'\n", info);
15 
16   // CHECK: nl_langinfo
17   // CHECK: DAY_1='{{.*}}'
18 
19   return 0;
20 }
21