1 /* { dg-do compile } */
3 typedef short unsigned int wchar_t;
4 typedef unsigned int size_t;
6 int WideCharToMultiByte (wchar_t *);
7 int __attribute__ ((__nonnull__ (1)))
8 __wcrtomb_cp (char *dst, wchar_t wc, const unsigned int cp,
9 const unsigned int mb_max)
17 return WideCharToMultiByte (&wc);
19 void wcsrtombs (char *dst, const wchar_t *pwc, unsigned int cp,
22 if ((__wcrtomb_cp (dst, *pwc, cp, mb_max)) <= 0)
24 if ((__wcrtomb_cp (dst, *pwc, cp, mb_max)) <= 0)