]> sourceware.org Git - glibc.git/blob - posix/bug-regex29.c
Extend last test case.
[glibc.git] / posix / bug-regex29.c
1 #include <regex.h>
2
3 static int
4 do_test (void)
5 {
6 regex_t r;
7 int e = regcomp(&r, "xy\\{4,5,7\\}zabc", 0);
8 char buf[100];
9 regerror(e, &r, buf, sizeof (buf));
10 printf ("e = %d (%s)\n", e, buf);
11 int res = e != REG_BADBR;
12
13 e = regcomp(&r, "xy\\{4,5a\\}zabc", 0);
14 regerror(e, &r, buf, sizeof (buf));
15 printf ("e = %d (%s)\n", e, buf);
16 res |= e != REG_BADBR;
17
18 return res;
19 }
20
21 #define TEST_FUNCTION do_test ()
22 #include "../test-skeleton.c"
This page took 0.04677 seconds and 6 git commands to generate.