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
23 lines
257 B
C
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;
|
|
}
|