summaryrefslogtreecommitdiff
path: root/tests/test_wmemmove_dynamic_read.c
blob: 05e315b395fcf277c7404890fa3bf69ebf587ff7 (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[12] = {0};
  wmemmove(buffer, L"αβγδεζηθικ", sizeof(buffer) / sizeof(wchar_t) - 1);
  printf("%ls\n", buffer);

  CHK_FAIL_START
  wmemmove(buffer, L"αβγδεζ", argc);
  CHK_FAIL_END

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