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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20010329-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
#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.