Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / 20031106-1.c
blob791e0f21ee79686fb37cb5624b486eb9dc7d7e09
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 /* Check for dead stores to an array. */
8 void foo (int testarray[])
10 testarray[0] = 0;
11 testarray[0]++;
12 if (testarray[0] != 1)
13 link_error ();
16 /* There should be only one reference to "testarray". */
17 /* { dg-final { scan-tree-dump-times "testarray" 1 "optimized" { xfail *-*-* } } } */
19 /* There should be no link_error calls. */
20 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
21 /* { dg-final { cleanup-tree-dump "optimized" } } */