re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr19633.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-ssa-vops" } */
3 struct S
4 {
5 int w, x, y, z;
6 };
7 struct T
8 {
9 int r;
10 struct S s;
11 };
12 void bar (struct S, int);
13 void
14 foo (int a, struct T b)
15 {
16 struct S x;
17 struct S *c = &x;
18 if (a)
19 c = &b.s;
20 bar (*c, a);
21 }
22
23 /* Make sure that .GLOBAL_VAR is not created when there are no
24 clobbering calls. */
25 /* { dg-final { scan-tree-dump-times "GLOBAL_VAR" 0 "ssa"} } */
26 /* { dg-final { cleanup-tree-dump "ssa" } } */