2012-12-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgomp / testsuite / libgomp.graphite / bounds.c
blobbd36c0f8a2260d3574350d0e7d38f3b12357346e
1 int foo(int *a, int n)
3 int i;
4 for (i = 2; i < n; i++)
5 a[i] += a[i+1];
8 /* Check that Graphite dependency checking notes the dependency. */
9 /* { dg-do compile } */
10 /* { dg-final { scan-tree-dump-times "0 loops carried no dependency" 1 "graphite" } } */
11 /* { dg-final { cleanup-tree-dump "graphite" } } */
12 /* { dg-final { cleanup-tree-dump "parloops" } } */
13 /* { dg-final { cleanup-tree-dump "optimized" } } */