This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][Cilkplus] Array notations as a Condition for If and switch statements


"Iyer, Balaji V" <balaji.v.iyer@intel.com> writes:
> new file mode 100644
> index 0000000..833379b
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/cilk-plus/array_notation_tests/if_test.c
> @@ -0,0 +1,162 @@
> +#include <stdio.h>
> +
> +int main (int argc, char **argv)
> +{
> +  int x = 3, y, z, array[10], array2[10], TwodArray[10][10], jj,kk,ll ;
> +  int FourDArray[10][10][10][10];
> +  int ii = 0; 
> +
> +  if (argc != 3)
> +    {
> +      fprintf(stderr, "Usage: %s 10 15\n", argv[0]);

Who actually calls the test case with these parameters?

Normally it should run by itself by adding the respective dejagnu
headers and return success/failure. The later also needs some more
self checking I suspect, not just outputting the result.

You want the test suite to fail when the cilk arrays break.

-Andi


-- 
ak@linux.intel.com -- Speaking for myself only


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]