diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-03-16 10:10:54 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-03-16 10:10:54 -0300 |
commit | bd2d206b7b7d32ef6f45ce23192cfaf5fe14ac3d (patch) | |
tree | b73ae374191069f3e8f4a50381be9916988be011 | |
parent | d0ed0690f1e86621a5cb62eec1d144036feb16f8 (diff) | |
download | gcc-bd2d206b7b7d32ef6f45ce23192cfaf5fe14ac3d.zip gcc-bd2d206b7b7d32ef6f45ce23192cfaf5fe14ac3d.tar.gz gcc-bd2d206b7b7d32ef6f45ce23192cfaf5fe14ac3d.tar.bz2 |
[testsuite] fix array element count
This test is similar to pr103116-1.c, but instead of writing to
4*COUNT elements of x, it writes to 8*COUNT elements, but the
definition of x seems to have been adjusted along with the loop. Fix
the array size so that it doesn't scribble over unrelated
statically-allocated objects.
for gcc/testsuite/ChangeLog
* gcc.dg/vect/pr103116-2.c (x): Fix array size.
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr103116-2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr103116-2.c b/gcc/testsuite/gcc.dg/vect/pr103116-2.c index 2f4ed0f..aa9797a 100644 --- a/gcc/testsuite/gcc.dg/vect/pr103116-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr103116-2.c @@ -31,7 +31,7 @@ loop (TYPE *restrict x, TYPE *restrict y) } } -TYPE x[COUNT * 4]; +TYPE x[COUNT * 8]; int main (void) |