* sysdeps/m68k/fpu/bits/mathinline.h: Don't define log2 as inline.
[glibc/pb-stable.git] / localedata / tests-mbwc / tst_wctype.c
bloba203e490871607cf0933bde88a43ef9aef39bcff
1 /*
2 WCTYPE: wctype_t wctype (const char *class);
3 */
6 #define TST_FUNCTION wctype
8 #include "tsp_common.c"
9 #include "dat_wctype.c"
11 int
12 tst_wctype (FILE * fp, int debug_flg)
14 TST_DECL_VARS (wctype_t);
15 char *class;
17 TST_DO_TEST (wctype)
19 TST_HEAD_LOCALE (wctype, S_WCTYPE);
20 TST_DO_REC (wctype)
22 TST_GET_ERRET (wctype);
23 class = TST_INPUT (wctype).class;
24 ret = wctype (class);
26 if (debug_flg)
28 fprintf (stderr, "tst_wctype : [ %d ] ret = %ld\n", rec + 1, ret);
31 TST_IF_RETURN (S_WCTYPE)
33 if (ret != 0)
35 Result (C_SUCCESS, S_WCTYPE, CASE_3, MS_PASSED);
37 else
39 err_count++;
40 Result (C_FAILURE, S_WCTYPE, CASE_3,
41 "should return non-0, but returned 0");
47 return err_count;