OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20030715-1.c] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.