aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/pr20490.c
blob: 8edc35e8a45aa167137214739982c980b654d5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O -ftree-pre" } */
static int  a;
static int  b;

typedef int gint;

int blah ()
{
	gint x = a;
	gint y = b;

	x *= (x < 0) ? -1 : 0;
	y *= (y < 0) ? -1 : 0;

	return (y * x);

}