[NFC][msan] Move setlocale test into sanitizer_common
authorVitaly Buka <vitalybuka@google.com>
Wed, 12 May 2021 02:03:50 +0000 (19:03 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 12 May 2021 02:05:07 +0000 (19:05 -0700)
compiler-rt/test/sanitizer_common/TestCases/setlocale.cpp [moved from compiler-rt/test/msan/setlocale.cpp with 61% similarity]

@@ -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 <locale.h>
 #include <stdlib.h>
 
 int main(void) {
-  char *locale = setlocale (LC_ALL, "");
+  char *locale = setlocale(LC_ALL, "");
   assert(locale);
   if (locale[0])
     exit(0);