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/] [compile/] [pr21021.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR tree-optimization/21021
2
 
3
   The front end produces a comparison of mismatched types, namely an
4
   integer and a pointer, causing VRP to compute TYPE_MAX_VALUE for a
5
   pointer, which we cannot.  */
6
 
7
extern void *bar (void);
8
 
9
int
10
foo (unsigned int *p, unsigned int *q)
11
{
12
  const void *r = bar ();
13
 
14
  if (r >= (const void *) *p
15
      && r < (const void *) *q)
16
    return 1;
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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