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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20080506-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* PR middle-end/36137 */
2
extern void abort (void);
3
 
4
#define MIN(a, b) ((a) < (b) ? (a) : (b))
5
#define MAX(a, b) ((a) > (b) ? (a) : (b))
6
 
7
int
8
main ()
9
{
10
  unsigned int u;
11
  int i = -1;
12
 
13
  u = MAX ((unsigned int) MAX (i, 0), 1);
14
  if (u != 1)
15
    abort ();
16
 
17
  u = MIN ((unsigned int) MAX (i, 0), (unsigned int) i);
18
  if (u != 0)
19
    abort ();
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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