summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20001013-1.c
blob: 0d139fc8039ca6cf361ea41f8df839de1e54ea21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct x {
	int a, b;
} z = { -4028, 4096 };

int foo(struct x *p, int y)
{
  if ((y & 0xff) != y || -p->b >= p->a)
    return 1;
  return 0;
}

main()
{
  if (foo (&z, 10))
    abort ();
  exit (0);
}