gcc/testsuite/gcc.dg/lto/pr60720_0.c
raw| 1 | /* { dg-lto-do run } */ |
| 2 | /* { dg-extra-ld-options { -w } } */ |
| 3 | |
| 4 | /* ??? lto.exp does not allow to scan for |
| 5 | :1:12: warning: type of 'x' does not match original declaration |
| 6 | extern int x[]; |
| 7 | ^ |
| 8 | :1:5: note: previously declared here |
| 9 | int x; |
| 10 | ^ */ |
| 11 | |
| 12 | extern int x[]; |
| 13 | int *foo[] = { &x[0] }; |
| 14 | |
| 15 | int main() { return *foo[0]; } |