1#include <locale.h>
2#include <mcheck.h>
3
4static int
5do_test (void)
6{
7 int cnt;
8
9 mtrace ();
10
11 for (cnt = 0; cnt < 100; ++cnt)
12 {
13 setlocale (LC_ALL, "de_DE.ISO-8859-1");
14 setlocale (LC_ALL, "de_DE.UTF-8");
15 }
16
17 return 0;
18}
19
20#define TEST_FUNCTION do_test ()
21#include "../test-skeleton.c"
22

source code of glibc/localedata/tst-leaks.c