[ucsim-z80] Fix #3828: uCsim SM83 flags simulation
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-921117-1.c
blobfb83afdbc55d88b6d433c50996a16ef1d1e181ba
1 /*
2 921117-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 // TODO: Enable when sdcc supports struct passing!
12 #if 0
13 struct s {
14 char text[11];
15 int flag;
16 } cell;
18 int
19 check (struct s p)
21 if (p.flag != 99)
22 return 1;
23 return strcmp (p.text, "0123456789");
25 #endif
27 void
28 testTortureExecute (void)
30 #if 0
31 cell.flag = 99;
32 strcpy (cell.text, "0123456789");
34 if (check (cell))
35 ASSERT (0);
36 return;
37 #endif