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

source code of glibc/locale/tst-duplocale.c