1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* Check that the initial values are honored when necessary. */
6 void link_error (void);
8 /* The call to link_error cannot be eliminated in this case. */
10 void test1 (int param1
, int param2
, int x
)
20 /* The call to link_error cannot be eliminated in this case. */
23 void test2 (int param1
, int param2
)
33 /* In this case, we can eliminate the call, as unless "local" is set
34 to 3, its value is undefined. */
36 void test3 (int param1
, int param2
)
48 /* { dg-final { scan-tree-dump-times "link_error" 2 "optimized" } } */
49 /* { dg-final { cleanup-tree-dump "optimized" } } */