Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-8.c
blobf618ff82bcff7cdabe74391a54ea6cd4bf8ff6d8
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-forwprop1 -W -Wall" } */
5 struct X { int a[5]; };
6 int foo(struct X *q)
8 int (*pointer)[5] = &q->a;
9 return (*pointer)[0];
13 /* We should have propragated &q->a into (*pointer). */
14 /* { dg-final { scan-tree-dump "q_.\\\(D\\\)\\\]\\\[0\\\];" "forwprop1" } } */