* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20080506-1.c
blob4f6d6d81a774e401ec6494da3031083eaf327477
1 /* PR middle-end/36137 */
2 extern void abort (void);
4 #define MIN(a, b) ((a) < (b) ? (a) : (b))
5 #define MAX(a, b) ((a) > (b) ? (a) : (b))
7 int
8 main ()
10 unsigned int u;
11 int i = -1;
13 u = MAX ((unsigned int) MAX (i, 0), 1);
14 if (u != 1)
15 abort ();
17 u = MIN ((unsigned int) MAX (i, 0), (unsigned int) i);
18 if (u != 0)
19 abort ();
20 return 0;