From 991075a49668f776b727b3b358557a02a896afa2 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 26 Sep 2016 16:57:44 +0000 Subject: [PATCH] builtin-sprintf-warn-1.c: Adjust regex to accept singular form of byte when quantity is unknown. 2016-09-26 Thomas Preud'homme gcc/testsuite/ * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Adjust regex to accept singular form of byte when quantity is unknown. From-SVN: r240503 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0692c01..e2b54b9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-09-26 Thomas Preud'homme + + * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Adjust regex to accept + singular form of byte when quantity is unknown. + 2016-09-26 Marek Polacek * g++.dg/cpp1z/feat-cxx1z.C: Test attribute fallthrough. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c index e098be9..efa69b8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c @@ -98,9 +98,9 @@ void test_sprintf_p_const (void) /* The exact output for %p is unspecified by C. Two formats are known: same as %tx (for example AIX) and same as %#tx (for example Solaris). */ - T (0, "%p", (void*)0x1); /* { dg-warning ".%p. directive writing . bytes into a region of size 0" } */ - T (1, "%p", (void*)0x12); /* { dg-warning ".%p. directive writing . bytes into a region of size 1" } */ - T (2, "%p", (void*)0x123); /* { dg-warning ".%p. directive writing . bytes into a region of size 2" } */ + T (0, "%p", (void*)0x1); /* { dg-warning ".%p. directive writing . bytes? into a region of size 0" } */ + T (1, "%p", (void*)0x12); /* { dg-warning ".%p. directive writing . bytes? into a region of size 1" } */ + T (2, "%p", (void*)0x123); /* { dg-warning ".%p. directive writing . bytes? into a region of size 2" } */ /* GLIBC and uClibc treat the ' ' flag with the "%p" directive the same as with signed integer conversions (i.e., it prepends a space). Other -- 2.7.4