]> git.ipfire.org Git - thirdparty/glibc.git/blame - posix/bug-regex29.c
nptl: Move pthread_attr_setinheritsched implementation into libc.
[thirdparty/glibc.git] / posix / bug-regex29.c
CommitLineData
8a7cea01 1#include <regex.h>
5ec794b4 2#include <stdio.h>
8a7cea01
UD
3
4static int
5do_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);
a1ed6c28
UD
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;
8a7cea01
UD
20}
21
22#define TEST_FUNCTION do_test ()
23#include "../test-skeleton.c"