foo(int * a,int n)1int foo(int *a, int n) 2 { 3 int i; 4 for (i = 2; i < n; i++) 5 a[i] += a[i+1]; 6 for (i = 2; i < n; i++) 7 a[i] += a[i+1]; 8 } 9 10 /* Check that Graphite dependency checking notes the dependency. */ 11 /* { dg-do compile } */ 12 /* { dg-final { scan-tree-dump-times "0 loops carried no dependency" 1 "graphite" } } */ 13