[NFC][msan] Move setlocale test into sanitizer_common
This commit is contained in:
parent
3f8be15f29
commit
7d101e0f6a
|
|
@ -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);
|
||||||
Loading…
Reference in New Issue