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/] [960327-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 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.