summaryrefslogtreecommitdiffstats
path: root/test/locale/tst-leaks.c
blob: 7a4b557f59fd4a4ae83182675644c1b994b62206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <locale.h>
#include <mcheck.h>

int
main (void)
{
  int cnt;

  mtrace ();

  for (cnt = 0; cnt < 100; ++cnt)
    {
      setlocale (LC_ALL, "de_DE.ISO-8859-1");
      setlocale (LC_ALL, "de_DE.UTF-8");
    }

  return 0;
}