modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20030330-1.c (about)

     1  /* PR opt/10011 */
     2  /* This is link test for builtin_constant_p simplification + DCE.  */
     3  
     4  extern void link_error(void);
     5  static void usb_hub_port_wait_reset(unsigned int delay)
     6  {
     7          int delay_time;
     8          for (delay_time = 0; delay_time < 500; delay_time += delay) {
     9                  if (__builtin_constant_p(delay))
    10                          link_error();
    11          }
    12  }
    13  
    14  int main() { return 0; }