(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
20030715-1.c
       1  /* PR optimization/11320 */
       2  /* Origin: Andreas Schwab <schwab@suse.de> */
       3  
       4  /* Verify that the scheduler correctly computes the dependencies
       5     in the presence of conditional instructions.  */
       6  
       7  int strcmp (const char *, const char *);
       8  int ap_standalone;
       9  
      10  const char *ap_check_cmd_context (void *a, int b)
      11  {
      12    return 0;
      13  }
      14  
      15  const char *server_type (void *a, void *b, char *arg)
      16  {
      17    const char *err = ap_check_cmd_context (a, 0x01|0x02|0x04|0x08|0x10);
      18    if (err)
      19      return err;
      20  
      21    if (!strcmp (arg, "inetd"))
      22      ap_standalone = 0;
      23    else if (!strcmp (arg, "standalone"))
      24        ap_standalone = 1;
      25    else
      26      return "ServerType must be either 'inetd' or 'standalone'";
      27  
      28    return 0;
      29  }
      30  
      31  int main ()
      32  {
      33    server_type (0, 0, "standalone");
      34    return 0;
      35  }