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

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

Line No. Rev Author Line
1 149 jeremybenn
/* This code was miscompiled at -O3 on x86.
2
   Reported by Jim Meyering; distilled from bash.  */
3
 
4
int rl_show_char (int c) { return 0; }
5
 
6
int rl_character_len (int c, int pos)
7
{
8
  return isprint (c) ? 1 : 2;
9
}
10
 
11
int main(void)
12
{
13
  int (*x)(int, int) = rl_character_len;
14
  if (x('a', 1) != 1)
15
    abort();
16
  if (x('\002', 1) != 2)
17
    abort();
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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