]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/graphite/isl-ast-gen-if.c (main): Increase size of a
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jun 2015 16:25:08 +0000 (16:25 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jun 2015 16:25:08 +0000 (16:25 +0000)
array to allow a[50] to be a valid location.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224743 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/graphite/isl-ast-gen-if-1.c

index 07285a92078914db5d5f5b73799992310938975d..2b05c7bb57d7ea1aa58676fda45eed1519f6a31f 100644 (file)
@@ -28,7 +28,7 @@ extern void abort ();
 int
 main (void)
 {
-  int a[50];
+  int a[51]; /* NB This size allows foo's first iteration to write to a[50].  */
   foo (a, 50);
   int res = array_sum (a);
   if (res != 49)