2 pr39339.c from the execute part of the gcc torture tests.
18 unsigned int columns
: 4;
19 unsigned int fore
: 12;
20 unsigned int back
: 6;
21 unsigned int fragment
: 1;
22 unsigned int standout
: 1;
23 unsigned int underline
: 1;
24 unsigned int strikethrough
: 1;
25 unsigned int reverse
: 1;
26 unsigned int blink
: 1;
27 unsigned int half
: 1;
28 unsigned int bold
: 1;
29 unsigned int invisible
: 1;
43 unsigned char soft_wrapped
: 1;
52 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pic14) // Lack of memory
53 void foo (struct E
*screen
, unsigned int c
, int columns
, struct B
*row
)
59 attr
= screen
->defaults
.attr
;
60 attr
.columns
= columns
;
61 row
->cells
->data
[col
].c
= c
;
62 row
->cells
->data
[col
].attr
= attr
;
65 for (i
= 1; i
< columns
; i
++)
67 row
->cells
->data
[col
].c
= c
;
68 row
->cells
->data
[col
].attr
= attr
;
75 testTortureExecute (void)
77 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pic14) // Lack of memory
78 #if !(defined (__SDCC_pdk15) && defined(__SDCC_STACK_AUTO)) // Lack of code memory
79 struct E e
= {.row
= 5,.col
= 0,.defaults
=
80 {6, {-1, -1, -1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0}} };
82 struct A a
= { c
, 4 };
83 struct B b
= { &a
, 1 };
85 memset (&c
, 0, sizeof c
);
89 if (memcmp (&d
, &c
[0].attr
, sizeof d
))
92 if (memcmp (&d
, &c
[1].attr
, sizeof d
))