re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr23777.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 extern void f(char *const *);
5 void g (char **o)
6 {
7 static const char *const multilib_exclusions_raw[] = { 0 };
8 const char *const *q = multilib_exclusions_raw;
9
10 f (o);
11 while (*q++)
12 f (o);
13 }
14
15 /* The last DCE pass is able to remove the load from
16 multilib_exclusions_raw. */
17
18 /* { dg-final { scan-tree-dump-not "multilib_exclusions_raw" "optimized" } } */
19 /* { dg-final { cleanup-tree-dump "optimized" } } */