| 1 |
/* { dg-compile "-fdump-ipa-clones -O2 -flto -g3 $test_dir/a.c $test_dir/b.c"} */ |
| 2 |
/* { dg-options "-graphviz -compute-closure main" }*/ |
| 3 |
|
| 4 |
// Currently we do not distinguish between lto_priv symbols, which results in |
| 5 |
// different symbols being merged together. |
| 6 |
/* { dg-xfail }*/ |
| 7 |
|
| 8 |
int function(); |
| 9 |
int function_g(); |
| 10 |
|
| 11 |
int main(void) |
| 12 |
{ |
| 13 |
return function() + function_g(); |
| 14 |
} |
| 15 |
|
| 16 |
/* { dg-scan-tree-dump } */ |
| 17 |
|
| 18 |
/* { dg-final { scan-tree-dump "common.lto_priv.0" } } */ |
| 19 |
/* { dg-final { scan-tree-dump "common.lto_priv.1" } } */ |