Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / pr60720_0.c
blob79cef5dad1a68cc639ab8058cc7aef2c97dd74da
1 /* { dg-lto-do run } */
2 /* { dg-extra-ld-options { -w } } */
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[];
8 :1:5: note: previously declared here
9 int x;
10 ^ */
12 extern int x[];
13 int *foo[] = { &x[0] };
15 int main() { return *foo[0]; }