xref: /aosp_15_r20/external/compiler-rt/test/msan/setlocale.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t
2 
3 #include <assert.h>
4 #include <locale.h>
5 #include <stdlib.h>
6 
main(void)7 int main(void) {
8   char *locale = setlocale (LC_ALL, "");
9   assert(locale);
10   if (locale[0])
11     exit(0);
12   return 0;
13 }
14