[NFC][msan] Move setlocale test into sanitizer_common

This commit is contained in:
Vitaly Buka 2021-05-11 19:03:50 -07:00
parent 3f8be15f29
commit 7d101e0f6a
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
// RUN: %clangxx_msan -O0 %s -o %t && %run %t // RUN: %clangxx -O0 %s -o %t && %run %t
#include <assert.h> #include <assert.h>
#include <locale.h> #include <locale.h>
#include <stdlib.h> #include <stdlib.h>
int main(void) { int main(void) {
char *locale = setlocale (LC_ALL, ""); char *locale = setlocale(LC_ALL, "");
assert(locale); assert(locale);
if (locale[0]) if (locale[0])
exit(0); exit(0);