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/] [991112-1.c] - Rev 315

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

/* This code was miscompiled at -O3 on x86.
   Reported by Jim Meyering; distilled from bash.  */
 
int rl_show_char (int c) { return 0; }
 
int rl_character_len (int c, int pos)
{
  return isprint (c) ? 1 : 2;
}
 
int main(void)
{
  int (*x)(int, int) = rl_character_len;
  if (x('a', 1) != 1)
    abort();
  if (x('\002', 1) != 2)
    abort();
  return 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.