1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 /* Check for dead stores to a struct. */
15 void foo (struct s
* teststruct
)
19 if (teststruct
->a
!= 1)
23 /* There should be only one reference to "teststruct" and one in the function header. */
24 /* { dg-final { scan-tree-dump-times "teststruct" 2 "optimized" } } */
26 /* There should be no link_error calls. */
27 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */