1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized -flive-patching" } */
3 static struct a {int magic1,b;} a;
4 volatile int magic2;
5 static struct b {int a,b,c,d,e,f;} magic3;
6 
7 struct b foo();
8 
9 void
t()10 t()
11 {
12  a.magic1 = 1;
13  magic2 = 1;
14  magic3 = foo();
15 }
16 /* { dg-final { scan-tree-dump "magic1" "optimized"} } */
17 /* { dg-final { scan-tree-dump "magic3" "optimized"} } */
18 /* { dg-final { scan-tree-dump "magic2" "optimized"} } */
19 /* { dg-final { scan-tree-dump "foo" "optimized"} } */
20 
21