tst-leaks.c 233 B

123456789101112131415161718
  1. #include <locale.h>
  2. #include <mcheck.h>
  3. int
  4. main (void)
  5. {
  6. int cnt;
  7. mtrace ();
  8. for (cnt = 0; cnt < 100; ++cnt)
  9. {
  10. setlocale (LC_ALL, "de_DE.ISO-8859-1");
  11. setlocale (LC_ALL, "de_DE.UTF-8");
  12. }
  13. return 0;
  14. }