8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/pr23604.c
James A. Morrison fde5c44c5c re PR tree-optimization/23604 (wrong code due to VRP)
PR 23604
	* tree-vrp.c (extract_range_from_assert): For !=
	assertions, only build an anti-range if LIMIT is a
	single-valued range.

testsuite/

	PR 23604
	* gcc.c-torture/execute/pr23604.c: New test.

Co-Authored-By: Diego Novillo <dnovillo@redhat.com>

From-SVN: r104858
2005-10-01 09:57:29 -04:00

23 lines
257 B
C

extern void abort (void);
int g(int i, int j)
{
if (i>-1)
if (i<2)
{
if (i != j)
{
if (j != 0)
return 0;
}
}
return 1;
}
int main(void)
{
if (!g(1, 0))
abort ();
return 0;
}