blob: 4dd9a2c48145bc08dde0134b68c3598a43460c13 [file] [log] [blame]
static void *self(void *p){ return p; }
int
f()
{
struct { int i; } s, *sp;
int *ip = &s.i;
s.i = 1;
sp = self(&s);
*ip = 0;
return sp->i+1;
}
main()
{
if (f () != 1)
abort ();
else
exit (0);
}