diff options
author | Balaji V. Iyer <balaji.v.iyer@intel.com> | 2013-06-17 16:22:35 +0000 |
---|---|---|
committer | Balaji V. Iyer <bviyer@gcc.gnu.org> | 2013-06-17 09:22:35 -0700 |
commit | 1416edb66fd84dfba136ea62ae4dd1991a742571 (patch) | |
tree | dd6baa5711478ca2e87539f7b2326698972f9714 | |
parent | 3d33d06bac26650aa94d6c9de46b7ee4965af8e5 (diff) | |
download | gcc-1416edb66fd84dfba136ea62ae4dd1991a742571.zip gcc-1416edb66fd84dfba136ea62ae4dd1991a742571.tar.gz gcc-1416edb66fd84dfba136ea62ae4dd1991a742571.tar.bz2 |
+2013-06-17 Balaji V.
+2013-06-17 Balaji V. Iyer <balaji.v.iyer@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.
+
From-SVN: r200153
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb05b1c..3197f6e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-06-17 Balaji V. Iyer <balaji.v.iyer@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 Sofiane Naci <sofiane.naci@arm.com> * gcc.target/aarch64/scalar_intrinsics.c: Update. diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c index e4f1ea8..282a55d 100644 --- a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c +++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-options "-fcilkplus" } */ #include <stdlib.h> @@ -47,7 +47,7 @@ int main2 (char **argv) 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 @@ int main2 (char **argv) 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 @@ int main2 (char **argv) 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; } |