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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20001130-2.c] - Blame information for rev 308

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

Line No. Rev Author Line
1 297 jeremybenn
static int which_alternative = 3;
2
 
3
static const char *i960_output_ldconst (void);
4
 
5
static const char *
6
output_25 (void)
7
{
8
  switch (which_alternative)
9
    {
10
    case 0:
11
      return "mov       %1,%0";
12
    case 1:
13
      return i960_output_ldconst ();
14
    case 2:
15
      return "ld        %1,%0";
16
    case 3:
17
      return "st        %1,%0";
18
    }
19
}
20
 
21
static const char *i960_output_ldconst (void)
22
{
23
  return "foo";
24
}
25
int main(void)
26
{
27
  const char *s = output_25 () ;
28
  if (s[0] != 's')
29
    abort ();
30
  exit (0);
31
}

powered by: WebSVN 2.1.0

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