summaryrefslogtreecommitdiff
path: root/libio/tst-ungetwc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/tst-ungetwc2.c')
-rw-r--r--libio/tst-ungetwc2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libio/tst-ungetwc2.c b/libio/tst-ungetwc2.c
index d15e287c05..a7c5193f5f 100644
--- a/libio/tst-ungetwc2.c
+++ b/libio/tst-ungetwc2.c
@@ -7,8 +7,8 @@
#include <unistd.h>
#include <wchar.h>
-int
-main (void)
+static int
+do_test (void)
{
FILE *fp;
const char *str = "abcdef";
@@ -79,3 +79,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"