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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [960327-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
#include <stdio.h>
2
g ()
3
{
4
  return '\n';
5
}
6
 
7
f ()
8
{
9
  char s[] = "abcedfg012345";
10
  char *sp = s + 12;
11
 
12
  switch (g ())
13
    {
14
      case '\n':
15
        break;
16
    }
17
 
18
  while (*--sp == '0')
19
    ;
20
  sprintf (sp + 1, "X");
21
 
22
  if (s[12] != 'X')
23
    abort ();
24
}
25
 
26
main ()
27
{
28
  f ();
29
  exit (0);
30
}

powered by: WebSVN 2.1.0

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