aboutsummaryrefslogtreecommitdiff
path: root/localedata/tst-leaks.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-06-27 07:59:20 +0000
committerUlrich Drepper <drepper@redhat.com>2001-06-27 07:59:20 +0000
commit7bcad280635fa97b7929f3427284cf5189363e95 (patch)
tree98469f126b629bc4bd91fc46df6a46113c2dbfcf /localedata/tst-leaks.c
parent73111f03f837d13865a38e3a3aa3ad75e02f819c (diff)
downloadglibc-7bcad280635fa97b7929f3427284cf5189363e95.tar
glibc-7bcad280635fa97b7929f3427284cf5189363e95.tar.gz
glibc-7bcad280635fa97b7929f3427284cf5189363e95.tar.bz2
glibc-7bcad280635fa97b7929f3427284cf5189363e95.zip
Update.
2001-06-27 Ulrich Drepper <drepper@redhat.com> * posix/tst-regex.c: Fix several bugs. Add more tests.
Diffstat (limited to 'localedata/tst-leaks.c')
-rw-r--r--localedata/tst-leaks.c18
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;
+}