brintos

brintos / llvm-project-archived public Read only

0
0
Text · 261 B · 87089d2 Raw
15 lines · c
1// RUN: %clang %s -o %t && %run %t 2>&12 3#include <assert.h>4#include <stdlib.h>5 6int 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;14}15