2 20030714-1.c from the execute part of the gcc torture tests.
11 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // pdk needs functions called via pointer to be reentrant even for a single argument
12 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5))
13 /* derived from PR optimization/11440 */
21 STATIC
, RELATIVE
, ABSOLUTE
, FIXED
23 typedef enum EPosition EPosition
;
27 FNONE
= 0, FLEFT
, FRIGHT
29 typedef enum EFloat EFloat
;
34 short m_verticalPosition
;
38 bool m_minMaxKnown
: 1;
41 bool m_positioned
: 1;
42 bool m_overhangingContents
: 1;
43 bool m_relPositioned
: 1;
44 bool m_paintSpecial
: 1;
46 bool m_isAnonymous
: 1;
47 bool m_recalcMinMax
: 1;
52 bool m_mouseInside
: 1;
53 bool m_hasFirstLine
: 1;
54 bool m_isSelectionBorder
: 1;
56 bool (*isTableCell
) (struct RenderBox
*this);
59 typedef struct RenderBox RenderBox
;
63 struct NonInheritedFlags
69 unsigned int _display
: 4;
70 unsigned int _bg_repeat
: 2;
71 bool _bg_attachment
: 1;
72 unsigned int _overflow
: 4 ;
73 unsigned int _vertical_align
: 4;
74 unsigned int _clear
: 2;
75 EPosition _position
: 2;
77 unsigned int _table_layout
: 1;
78 bool _flowAroundFloats
:1;
80 unsigned int _styleType
: 3;
83 bool _clipSpecified
: 1;
84 unsigned int _unicodeBidi
: 2;
92 typedef struct RenderStyle RenderStyle
;
94 extern void RenderObject_setStyle(RenderBox
*this, RenderStyle
*_style
);
95 extern void removeFromSpecialObjects(RenderBox
*this);
99 void RenderBox_setStyle(RenderBox
*thisin
, RenderStyle
*_style
)
101 RenderBox
*this = thisin
;
105 tmp
= this->m_positioned
;
109 RenderObject_setStyle(this, _style
);
111 tmppo
= _style
->noninherited_flags
.f
._position
;
119 this->m_positioned
= ltrue
;
130 this->m_positioned
= ltrue
;
131 removeFromSpecialObjects(this);
135 this->m_positioned
= lfalse
;
138 tmpf
= _style
->noninherited_flags
.f
._floating
;
140 if(!this->isTableCell (this) && !(tmpf
== FNONE
))
143 this->m_floating
= ltrue
;
147 tmpp
= _style
->noninherited_flags
.f
._position
;
148 if (tmpp
== RELATIVE
)
151 this->m_relPositioned
= ltrue
;
162 RenderStyle g__style
;
164 void RenderObject_setStyle(RenderBox
*this, RenderStyle
*_style
)
170 void removeFromSpecialObjects(RenderBox
*this)
175 bool RenderBox_isTableCell (RenderBox
*this)
184 testTortureExecute (void)
187 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15)
188 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5))
189 g_this
.m_relPositioned
= false;
190 g_this
.m_positioned
= false;
191 g_this
.m_floating
= false;
192 g_this
.isTableCell
= RenderBox_isTableCell
;
194 g__style
.noninherited_flags
.f
._position
= FIXED
;
195 g__style
.noninherited_flags
.f
._floating
= FNONE
;
197 RenderBox_setStyle (&g_this
, &g__style
);
199 if (g_this
.m_positioned
!= true)
201 if (g_this
.m_relPositioned
!= false)
203 if (g_this
.m_floating
!= false)