summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20070531-1.c
blob: 90ecbb88dc288bb29a98d241c03705139cfcf0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
/* MIN_EXPR/MAX_EXPR caused an ICE in VRP. */
int *f(int *a, int *b)
{
 *a = 1;
 *b = 2;
 int *c = a < b ? a : b;
 if (c)
   return c;
 else
   return a;
}