math: Fix incorrect results of exp10m1f with some GCC versions
[glibc.git] / localedata / tests-mbwc / tst_wcwidth.c
blob6a5af6fa399242f5c0f9d3e66d8ef11b2306ffe7
1 /*
2 WCWIDTH: int wcwidth (wchar_t wc);
3 */
5 #define TST_FUNCTION wcwidth
7 #include "tsp_common.c"
8 #include "dat_wcwidth.c"
10 int
11 tst_wcwidth (FILE * fp, int debug_flg)
13 TST_DECL_VARS (int);
14 wchar_t wc;
16 TST_DO_TEST (wcwidth)
18 TST_HEAD_LOCALE (wcwidth, S_WCWIDTH);
19 TST_DO_REC (wcwidth)
21 TST_GET_ERRET (wcwidth);
22 wc = TST_INPUT (wcwidth).wc;
23 ret = wcwidth (wc);
25 if (debug_flg)
27 fprintf (stdout, "wcwidth() [ %s : %d ] ret = %d\n", locale,
28 rec + 1, ret);
31 TST_IF_RETURN (S_WCWIDTH)
37 return err_count;