1 /* 2 Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> 3 */ 4 #include <wctype.h> 5 #include <newlib.h> 6 #include "check.h" 7 main(void)8int main(void) 9 { 10 wctrans_t x; 11 12 x = wctrans ("tolower"); 13 CHECK (x != 0); 14 CHECK (towctrans (L'A', x) == towlower (L'A')); 15 CHECK (towctrans (L'5', x) == towlower (L'5')); 16 17 x = wctrans ("toupper"); 18 CHECK (x != 0); 19 CHECK (towctrans (L'c', x) == towupper (L'c')); 20 CHECK (towctrans (L'9', x) == towupper (L'9')); 21 22 x = wctrans ("unknown"); 23 CHECK (x == 0); 24 25 exit (0); 26 } 27