(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
lto/
pr47924_0.c
       1  /* { dg-lto-do link } */
       2  /* { dg-lto-options {{-O2 -flto}} } */
       3  
       4  extern void link_error (void);
       5  short *p __attribute__((used));
       6  int i __attribute__((used));
       7  
       8  int main()
       9  {
      10    if (i == 0)
      11      return 0;
      12  
      13    *p = 0;
      14  
      15    if (i == 0)
      16      link_error ();
      17  
      18    return 0;
      19  }