summaryrefslogtreecommitdiff
path: root/localedata/tst-leaks.c
blob: 3ac4a90da4421b3a87c7b897e900800d84facc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <locale.h>
#include <mcheck.h>

static int
do_test (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;
}

#define TIMEOUT 5
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"