1 #include <locale.h> 2 #include <stdio.h> 3 4 static int do_test(void)5 do_test (void) 6 { 7 locale_t d = duplocale (LC_GLOBAL_LOCALE); 8 if (d != (locale_t) 0) 9 freelocale (d); 10 return 0; 11 } 12 13 #define TEST_FUNCTION do_test () 14 #include "../test-skeleton.c" 15