yasm/libyasm/tests/strucsize.asm
Peter Johnson 5603155758 Fix #98. Fix implemented by merging any reserve multiple into the main
bytecode multiple.

strucsize.asm tests both creation and instantiation of a nested structure.
[1751] and [1752] fix bugs found during the testing of the instantiation
portion of this testcase.

A side effect of this change is that some errors are found in different
phases, and the error messages are slightly different.  Split
reserve-error.asm testcase into two parts to still get full coverage.

svn path=/trunk/yasm/; revision=1753
2007-02-04 00:41:42 +00:00

23 lines
182 B
NASM

struc TST1
.a resd 2
endstruc
struc TST2
.b resb TST1_size
endstruc
tst2:
istruc TST2
at TST2.b
istruc TST1
at TST1.a
dd 1, 2
iend
iend
dw TST1_size
dw TST2_size