Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / wctomb.c
blob87089d2ce489ee70d75a3d15042d2e25d39ba8c2
1 // RUN: %clang %s -o %t && %run %t 2>&1
3 #include <assert.h>
4 #include <stdlib.h>
6 int main(int argc, char **argv) {
7 char buff[10];
8 wchar_t x = L'a';
9 wctomb(NULL, x);
10 int res = wctomb(buff, x);
11 assert(res == 1);
12 assert(buff[0] == 'a');
13 return 0;