summaryrefslogtreecommitdiff
path: root/tests/test_wcstombs_dynamic.c
blob: 6f3962d2b2c09ab9e768e641c2701de23d0b4ad0 (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) {
  char buffer[4] = {0};

  wcstombs(buffer, L"AB", 2);

  CHK_FAIL_START
  wcstombs(buffer, L"ABCDEFGHIJ", argc + 15);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}