summaryrefslogtreecommitdiff
path: root/test/locale/tst-leaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/locale/tst-leaks.c')
-rw-r--r--test/locale/tst-leaks.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/locale/tst-leaks.c b/test/locale/tst-leaks.c
new file mode 100644
index 000000000..7a4b557f5
--- /dev/null
+++ b/test/locale/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;
+}