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

#include <wchar.h>

int main(int argc, char** argv) {
  wchar_t buffer[4] = {0};
  wmemset(buffer, L'A', 3);

  CHK_FAIL_START
  wmemset(buffer, L'B', argc);
  CHK_FAIL_END

  return ret;
}