Add testcase for PR43567.

2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/43567
	* gcc.dg/graphite/pr43567.c: New.

From-SVN: r169252
This commit is contained in:
Sebastian Pop 2011-01-25 21:24:35 +00:00 committed by Sebastian Pop
parent b305e3dab4
commit eaf52b4125
3 changed files with 36 additions and 0 deletions

View File

@ -69,6 +69,11 @@
PR tree-optimization/43567
* gcc.dg/graphite/pr43567.c: New.
2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/43567
* gcc.dg/graphite/pr43567.c: New.
2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
* Makefile.in (LAMBDA_H): Removed.

View File

@ -1,3 +1,8 @@
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/43567
* gcc.dg/graphite/pr43567.c: New.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* gfortran.dg/graphite/interchange-4.f: New.

View File

@ -0,0 +1,26 @@
/* { dg-do run } */
/* { dg-options "-O2 -fno-inline -fno-tree-ch -ftree-loop-linear" } */
extern void abort ();
int
test (int n, int *a)
{
int i, j;
for (i = 0; i < n; i++)
for (j = 0; j < n; j++)
a[j] = i + n;
if (a[0] != 31 || i + n - 1 != 31)
abort ();
return 0;
}
int main (void)
{
int a[16];
test (16, a);
return 0;
}