| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Os -fdump-ipa-icf" } */ |
| 3 |
|
| 4 |
int a[2]; |
| 5 |
static int *b = &a[0], *c = &a[1]; |
| 6 |
|
| 7 |
int |
| 8 |
main () |
| 9 |
{ |
| 10 |
*c = 1; |
| 11 |
*b = 0; |
| 12 |
|
| 13 |
if (a[1] != 1) |
| 14 |
__builtin_abort (); |
| 15 |
|
| 16 |
return 0; |
| 17 |
} |
| 18 |
|
| 19 |
/* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */ |