diff options
author | Roland McGrath <roland@redhat.com> | 2009-08-27 13:41:23 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-08-27 13:41:23 -0700 |
commit | 8a344d4a3bd01d1704a405b741c99086261713cf (patch) | |
tree | 1d28740af54a3d9194373f7f561baf579c3a8f44 /posix | |
parent | bc9dd948ffc9cf1992d3e77e753789ab897e3dc6 (diff) | |
parent | 2df4be8c3545f6158e468660a73f794573fb6f07 (diff) |
Merge commit 'origin/master' into fedora/master
Diffstat (limited to 'posix')
-rw-r--r-- | posix/bug-regex29.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c index 70a6c94cc6..bd796c6c2a 100644 --- a/posix/bug-regex29.c +++ b/posix/bug-regex29.c @@ -8,7 +8,14 @@ do_test (void) char buf[100]; regerror(e, &r, buf, sizeof (buf)); printf ("e = %d (%s)\n", e, buf); - return e != REG_BADBR; + int res = e != REG_BADBR; + + e = regcomp(&r, "xy\\{4,5a\\}zabc", 0); + regerror(e, &r, buf, sizeof (buf)); + printf ("e = %d (%s)\n", e, buf); + res |= e != REG_BADBR; + + return res; } #define TEST_FUNCTION do_test () |