1 /** bug-3766.c: a bug in an optimization resulted in a wrong type on a struct member of
2 another struct when passed as function parameter, resulting in a unbalanced stack
3 assertion being triggered in code generation when the two structs had different size,
14 unsigned* dp
; // Ensure that Search is bigger than Buf.
17 int compareEntryName(Buf qName
);
19 void lookupFunc(Search
* s
) {
20 compareEntryName(s
->name
); // Bug triggered on this line.
30 int compareEntryName (Buf qName
)
32 ASSERT (qName
.len
== 0x55aa);