1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 /* Check for copyprop on structs. */
15 struct s
foo (struct s r
)
17 struct s temp_struct1
;
18 struct s temp_struct2
;
19 struct s temp_struct3
;
21 temp_struct2
= temp_struct1
;
22 temp_struct3
= temp_struct2
;
26 /* There should be no references to any of "temp_struct*"
28 /* { dg-final { scan-tree-dump-times "temp_struct" 0 "optimized" { xfail *-*-* } } } */
29 /* { dg-final { cleanup-tree-dump "optimized" } } */