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] - Rev 154

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

#include <stdio.h>
g ()
{
  return '\n';
}
 
f ()
{
  char s[] = "abcedfg012345";
  char *sp = s + 12;
 
  switch (g ())
    {
      case '\n':
        break;
    }
 
  while (*--sp == '0')
    ;
  sprintf (sp + 1, "X");
 
  if (s[12] != 'X')
    abort ();
}
 
main ()
{
  f ();
  exit (0);
}
 

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

powered by: WebSVN 2.1.0

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