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

Details | Compare with Previous | View Log

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