15 lines
394 B
C
15 lines
394 B
C
/* { dg-do compile } */
|
|
/* { dg-options "-O -fdump-tree-ccp1 -fdump-tree-forwprop1" } */
|
|
|
|
int a[256];
|
|
int foo(int i)
|
|
{
|
|
int *p = &a[0];
|
|
return *(p + i);
|
|
}
|
|
|
|
/* { dg-final { scan-tree-dump "&a\\\[\[iD\]\\\." "ccp1" } } */
|
|
/* { dg-final { scan-tree-dump "= a\\\[\[iD\]\\\." "forwprop1" } } */
|
|
/* { dg-final { cleanup-tree-dump "ccp1" } } */
|
|
/* { dg-final { cleanup-tree-dump "forwprop1" } } */
|