diff options
Diffstat (limited to 'localedata/tst-leaks.c')
-rw-r--r-- | localedata/tst-leaks.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/localedata/tst-leaks.c b/localedata/tst-leaks.c new file mode 100644 index 0000000000..7a4b557f59 --- /dev/null +++ b/localedata/tst-leaks.c @@ -0,0 +1,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; +} |