summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/950621-1.c
blob: 5fc5a90287413aeb83ab0b831330d85b9a290b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}