]> git.ipfire.org Git - thirdparty/glibc.git/blob - posix/bug-regex29.c
Make mktime etc. compatible with __time64_t
[thirdparty/glibc.git] / posix / bug-regex29.c
1 #include <regex.h>
2 #include <stdio.h>
3
4 static int
5 do_test (void)
6 {
7 regex_t r;
8 int e = regcomp(&r, "xy\\{4,5,7\\}zabc", 0);
9 char buf[100];
10 regerror(e, &r, buf, sizeof (buf));
11 printf ("e = %d (%s)\n", e, buf);
12 int res = e != REG_BADBR;
13
14 e = regcomp(&r, "xy\\{4,5a\\}zabc", 0);
15 regerror(e, &r, buf, sizeof (buf));
16 printf ("e = %d (%s)\n", e, buf);
17 res |= e != REG_BADBR;
18
19 return res;
20 }
21
22 #define TEST_FUNCTION do_test ()
23 #include "../test-skeleton.c"