struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20001013-1.c
blob5a16ade568e3262c228057dc3651e7281c73d528
1 /*
2 20001013-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 struct x {
12 int a, b;
13 } z = { -4028, 4096 };
15 int foo(struct x *p, int y)
17 if ((y & 0xff) != y || -p->b >= p->a)
18 return 1;
19 return 0;
22 void
23 testTortureExecute (void)
25 if (foo (&z, 10))
26 ASSERT (0);
27 return;