summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr18792.c
blob: 4e93fe145f365627b46d770a3ca214ef8f2fd11b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/18792 */
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-loop-linear" } */
void put_atoms_in_triclinic_unitcell(float x[][3])
{
	int i=0,d;

	while (x[i][3] < 0)
		for (d=0; d<=3; d++)
			x[i][d] = 0;

	while (x[i][3] >= 0)
		for (d=0; d<=3; d++)
			x[i][d] = 0;

}