PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / pr47924_0.c
blob1cecc3e8714dee765eaa60d18ebd7fb57392b541
1 /* { dg-lto-do link } */
2 /* { dg-lto-options {{-O2 -flto}} } */
4 extern void link_error (void);
5 short *p __attribute__((used));
6 int i __attribute__((used));
8 int main()
10 if (i == 0)
11 return 0;
13 *p = 0;
15 if (i == 0)
16 link_error ();
18 return 0;