1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 /* Check for cprop on array elements. */
8 void foo (int testarray
[])
14 if (testarray
[0] != 1)
16 if (testarray
[1] != 2)
20 /* There should be no link_error calls. */
21 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */