1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 /* Tests for SRA of unions. */
6 void link_error (void);
8 typedef union testunion
15 copyunion1 (testunion param
)
25 copyunion11 (testunion
*param
)
35 copyunion111 (testunion param
)
37 testunion
*local
= ¶m
;
57 testunion
*local
= &globuf
;
64 copyunion111111 (testunion param
)
66 static testunion local
;
73 /* There should be no reference to link_error. */
74 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */