OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20010329-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#include <limits.h>
2
 
3
int main (void)
4
{
5
  void *x = ((void *)((unsigned int)INT_MAX + 2));
6
  void *y = ((void *)((unsigned long)LONG_MAX + 2));
7
  if (x >= ((void *)((unsigned int)INT_MAX + 1))
8
      && x <= ((void *)((unsigned int)INT_MAX + 6))
9
      && y >= ((void *)((unsigned long)LONG_MAX + 1))
10
      && y <= ((void *)((unsigned long)LONG_MAX + 6)))
11
    exit (0);
12
  else
13
    abort ();
14
}

powered by: WebSVN 2.1.0

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