Hello Everyone, 
        This patch will make one of the array notation tests a runnable one 
instead of a compile only. I have also changed the return values from just '1' 
to distinct values so that it is easier to debug. This patch is committed as 
obvious.

Here is the ChangeLog entry:
+2013-06-17  Balaji V. Iyer  <balaji.v.i...@intel.com>
+
+        * c-c++-common/cilk-plus/AN/array_test1.c: Make this an execution test.
+       Also changed the returns from error as distinct values so that it is
+       easier to debug.
+

Thanks,

Balaji V. Iyer.
Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog     (revision 200149)
+++ gcc/testsuite/ChangeLog     (working copy)
@@ -1,3 +1,9 @@
+2013-06-17  Balaji V. Iyer  <balaji.v.i...@intel.com>
+       
+        * c-c++-common/cilk-plus/AN/array_test1.c: Make this an execution test.
+       Also changed the returns from error as distinct values so that it is
+       easier to debug.
+
 2013-06-17  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>
 
        * gcc.target/arm/unaligned-memcpy-2.c (dest): Initialize to
Index: gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c
===================================================================
--- gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c       (revision 
200148)
+++ gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c       (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do run } */
 /* { dg-options "-fcilkplus" } */
 
 #include <stdlib.h>
@@ -47,7 +47,7 @@
   array[x:y:z] = 505;
   for (ii = x; ii < 10; ii += z)
     if (array[ii] != 505)
-      return 2;
+      return 4;
     
   x = atoi(argv[1]);
   z = (10-atoi(argv[1]))/atoi(argv[1]);
@@ -57,7 +57,7 @@
 
   for (ii = x; ii < 10; ii += z)
     if (array[ii] != 25)
-      return 1;
+      return 5;
   x = atoi(argv[1]);
   z = (10-atoi(argv[1]))/atoi(argv[1]);
   y = 10-atoi(argv[1]);
@@ -66,19 +66,19 @@
     1400;
   for (ii = x; ii < 10; ii += z)
     if (array[ii] != 1400)
-      return 1;
+      return 6;
   
 
   array[atoi("5"):5:1] = 5555;
   
   for (ii = atoi ("5"); ii < 10; ii++)
     if (array[ii] != 5555)
-      return 2;
+      return 7;
   
 
   array[atoi("5"):atoi("5"):atoi("1")] = 9999;
   for (ii = atoi ("5"); ii < (atoi ("5") + atoi ("5")); ii += atoi ("1"))
     if (array[ii] != 9999)
-      return 3;
+      return 8;
   return 0;
 }

Reply via email to