diff options
Diffstat (limited to 'posix/tst-regexloc.c')
-rw-r--r-- | posix/tst-regexloc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/posix/tst-regexloc.c b/posix/tst-regexloc.c index 38bf87abbf..b67fbb6b8c 100644 --- a/posix/tst-regexloc.c +++ b/posix/tst-regexloc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2015 Free Software Foundation, Inc. +/* Copyright (C) 2001-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,8 +23,8 @@ #include <locale.h> #include <stdio.h> -int -main (int argc, char *argv[]) +static int +do_test (void) { regex_t re; regmatch_t mat[1]; @@ -44,3 +44,6 @@ main (int argc, char *argv[]) return res; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |