blob: 39edf17667636152ef51dbb60f30d92dc4e45746 [file] [log] [blame]
/* APPLE LOCAL file mainline 2006-11-03 4815483 */
/* { 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;
}