Commit 4de71998 by Diego Novillo Committed by Diego Novillo

* gcc.dg/tree-ssa/pr23192.c: New test.

From-SVN: r102656
parent e63c84d8
2005-08-02 Diego Novillo <dnovillo@redhat.com>
* gcc.dg/tree-ssa/pr23192.c: New test.
2005-08-02 James A. Morrison <phython@gcc.gnu.org>
* gcc.c-torture/execute/vrp-4.c: New test.
......
/* { dg-options "-O2" } */
/* { dg-do run } */
struct S { int i; } s;
void f (struct S *q)
{
int a, *p;
p = &a;
if (q)
p = &q->i;
*p = 1;
}
void abort (void);
int main (void)
{
f (&s);
if (s.i != 1)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment