summaryrefslogtreecommitdiff
path: root/posix/bug-regex29.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2009-08-24 10:15:51 +0200
committerAndreas Schwab <schwab@redhat.com>2009-08-24 10:15:51 +0200
commit255acd161cc2d7752a4e79234dcba5d929c3e0a4 (patch)
tree94c1d111cce2137ee948ff0e9d735f7a3643ef78 /posix/bug-regex29.c
parent593eff0f9e5bed517e0a8434507ee9f3f4d45b87 (diff)
parenta0e25a886a9128b280b4c05bc9c6dd12377ea868 (diff)
Merge commit 'origin/master' into fedora/master
Conflicts: sysdeps/powerpc/powerpc64/____longjmp_chk.S sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
Diffstat (limited to 'posix/bug-regex29.c')
-rw-r--r--posix/bug-regex29.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c
new file mode 100644
index 0000000000..70a6c94cc6
--- /dev/null
+++ b/posix/bug-regex29.c
@@ -0,0 +1,15 @@
+#include <regex.h>
+
+static int
+do_test (void)
+{
+ regex_t r;
+ int e = regcomp(&r, "xy\\{4,5,7\\}zabc", 0);
+ char buf[100];
+ regerror(e, &r, buf, sizeof (buf));
+ printf ("e = %d (%s)\n", e, buf);
+ return e != REG_BADBR;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"