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/] [execute/] [20080506-1.c] - Blame information for rev 301

Go to most recent revision | 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.