summaryrefslogtreecommitdiff
path: root/tests/test_mbstowcs_static.c
blob: 585c4f06ca145559d0e9ec3df434df06713b517f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "common.h"

#include <wchar.h>

int main(int argc, char** argv) {
  wchar_t buffer[4] = {0};

  mbstowcs(buffer, "AB", 2);

  CHK_FAIL_START
  mbstowcs(buffer, "ABCDEFGHIJ", 16);
  CHK_FAIL_END

  printf("%ls\n", buffer);
  return ret;
}