8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/950621-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

21 lines
206 B
C

struct s
{
int a;
int b;
struct s *dummy;
};
f (struct s *sp)
{
return sp && sp->a == -1 && sp->b == -1;
}
main ()
{
struct s x;
x.a = x.b = -1;
if (f (&x) == 0)
abort ();
exit (0);
}