Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / bug484002.c
blob4876acd03c3048f2cdba157dd14844735da844bd
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <wchar.h>
6 int main()
9 const wchar_t in[] = {L'a', L'b', L'c', 0};
10 wchar_t out[3 + 1] = {
14 size_t res = wcsxfrm(out, in, 3);
15 printf("%zu\n", res);
17 wchar_t* in2 = malloc(sizeof(wchar_t) * 4);
18 memcpy(in2, in, sizeof(in));
19 res = wcsxfrm(out, in2, 3);
20 printf("%zu\n", res);
21 free(in2);
23 wchar_t* in3 = malloc(sizeof(wchar_t) * 4);
24 memcpy(in3, in, sizeof(in));
25 res = wcsxfrm(out, in3, 3);
26 printf("%zu\n", res);
27 free(in3);