/* Test program for user-defined character maps.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>.
#include <wchar.h>
#include <wctype.h>
-int
-main (void)
+static int
+do_test (void)
{
char buf[30];
wchar_t wbuf[30];
}
wch = towctrans (L'A', t);
- printf ("towctrans (L'A', t) = %c\n", wch);
+ printf ("towctrans (L'A', t) = %lc\n", wch);
if (wch != L'B')
errors = 1;
wch = towctrans (L'B', t);
- printf ("towctrans (L'B', t) = %c\n", wch);
+ printf ("towctrans (L'B', t) = %lc\n", wch);
if (wch != L'C')
errors = 1;
return errors;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"