summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20001013-1.c
blob: 5a16ade568e3262c228057dc3651e7281c73d528 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
   20001013-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

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;
}

void
testTortureExecute (void)
{
  if (foo (&z, 10))
    ASSERT (0);
  return;
}