Patchwork fixed a minor bug in array notation test case

login
register
mail settings
Submitter Iyer, Balaji V
Date June 17, 2013, 1:28 a.m.
Message ID <BF230D13CA30DD48930C31D4099330003A438F23@FMSMSX101.amr.corp.intel.com>
Download mbox | patch
Permalink /patch/251756/
State New
Headers show

Comments

Iyer, Balaji V - June 17, 2013, 1:28 a.m.
Hello Everyone,
	I found a minor bug in one of the array notation test case. I accidentally put the minus for length instead of stride. I have committed this patch as obvious.

2013-06-16  Balaji V. Iyer  <balaji.v.iyer@intel.com>

        * c-c++-common/cilk-plus/AN/if_test.c (main2): Fixed a bug of accidentally
        placing minus sign for length instead of stride.



Thanks,

Balaji V. Iyer.

Patch

diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c
index 5544d45..4e5b158 100644
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c
+++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c
@@ -269,7 +269,7 @@  int main2 (char **argv)

   /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
   if (FourDArray[0:10:1][0:5:2][9:10:-1][x:y:z] +
-      FourDArray[0:10:1][0:5:2][9:-10:1][x:y:z]  != 20)
+      FourDArray[0:10:1][0:5:2][9:10:-1][x:y:z]  != 20)
     array4[0:10:1][0:5:2][9:10:-1][x:y:z] = 10;
   else
     array4[0:10][0:5:2][9:10:-1][x:y:z] = 5;