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
9int main(void) {
10 printf(format: "nl_langinfo\n");
11
12 char *info = nl_langinfo(DAY_1);
13
14 printf(format: "DAY_1='%s'\n", info);
15
16 // CHECK: nl_langinfo
17 // CHECK: DAY_1='{{.*}}'
18
19 return 0;
20}
21

source code of compiler-rt/test/sanitizer_common/TestCases/Posix/nl_langinfo.cpp