Ticket #18350: foo.c

File foo.c, 279 bytes (added by bhaible, 19 months ago)

test case

Line 
1#ifdef __HAIKU__
2 #include <stdint.h>
3#endif
4#include <uchar.h>
5#include <stdio.h>
6#include <stdlib.h>
7static char32_t wc;
8static mbstate_t mbs;
9int
10main (void)
11{
12 int ret = mbrtoc32 (&wc, "", 0, &mbs);
13 printf ("ret = %d\n", ret);
14 if (ret != -2)
15 abort ();
16 return 0;
17}