1 /* { dg-do run } */
2 /* { dg-options "-O -floop-nest-optimize -fdump-tree-graphite-details" } */
3 
4 int rx, in;
5 
6 int
main(void)7 main (void)
8 {
9   const int tj = 3;
10   int as[tj];
11   static int l4;
12 
13   while (l4 < 1)
14     {
15       for (rx = 0; rx < tj; ++rx)
16 	{
17 	  for (in = 0; in < tj; ++in)
18 	    as[in] = 1;
19 	  as[rx] = 0;
20 	}
21       ++l4;
22     }
23 
24   if (as[tj - 1] != 0)
25     __builtin_abort ();
26 }
27 
28 /* { dg-final { scan-tree-dump "loop nest optimized" "graphite" } } */
29