preproc: Fix the token in expanding the %+/%- macro-parameters
[nasm.git] / test / br3092924.asm
blob3f9cde04b8fd8a5c640a8a26019602031f70bb27
1 %define RNUM 0x10000 ; max of relocations in a section is 0xffff
3 section .data1
4 r1 dd RNUM
6 section .data2
7 r2 dd RNUM
9 %macro x1 1
10 mov eax, [r1 + %1]
11 %endmacro
13 %macro x2 1
14 mov eax, [r2 + %1]
15 %endmacro
17 section .text1
19 %assign i 0
20 %rep RNUM
21 x1 i
22 x2 i
23 %assign i i+1
24 %endrep