1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 /* Tests for SRA of unions. */
7 typedef union testunion
14 copyunion1 (testunion param
)
24 copyunion11 (testunion
*param
)
34 copyunion111 (testunion param
)
36 testunion
*local
= ¶m
;
56 testunion
*local
= &globuf
;
63 copyunion111111 (testunion param
)
65 static testunion local
;
72 /* There should be no reference to link_error. */
73 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
74 /* { dg-final { cleanup-tree-dump "optimized" } } */