From 14832dcb6997f71d35305a08724ce164930ffca0 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 18 Feb 2020 20:48:19 +0000 Subject: [PATCH] gcc.dg/strcmpopt_6.c: Add space in array for terminator. --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/strcmpopt_6.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 270644a97d2..a6c09acde85 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-02-18 Jon Beniston + + * gcc.dg/strcmpopt_6.c: Add space in array for terminator. + 2020-02-18 Mark Eggleston PR fortran/93714 diff --git a/gcc/testsuite/gcc.dg/strcmpopt_6.c b/gcc/testsuite/gcc.dg/strcmpopt_6.c index cb99294e5fa..06b7e3480db 100644 --- a/gcc/testsuite/gcc.dg/strcmpopt_6.c +++ b/gcc/testsuite/gcc.dg/strcmpopt_6.c @@ -33,7 +33,7 @@ test_strlen_lt6_strcmp_abcd (const char *s) __attribute__ ((noclone, noinline)) int test_strcpy_strcmp_abc (const char *s) { - char a[4]; + char a[5]; strcpy (a, s); return strcmp (a, "abc") == 0; } -- 2.30.2