| 1 |
;Testname=test; Arguments=-E -o ppindirect.out; Files=ppindirect.out |
| 2 |
|
| 3 |
; Fun tests of the preprocessor indirection mode... |
| 4 |
|
| 5 |
bits 64 |
| 6 |
|
| 7 |
%assign foo1 11 |
| 8 |
%assign foo11 1111 |
| 9 |
%assign foo2 22 |
| 10 |
%assign foo22 2222 |
| 11 |
%assign foo3 33 |
| 12 |
%assign foo33 3333 |
| 13 |
%assign n 2 |
| 14 |
dd foo%[foo%[n]]*100 |
| 15 |
dd foo%[n]*100 |
| 16 |
%assign foo%[foo%[n]] foo%[foo%[n]]*100 |
| 17 |
;%assign foo%[n] foo%[n]*100 |
| 18 |
|
| 19 |
dd foo1 |
| 20 |
dd foo2 |
| 21 |
dd foo3 |
| 22 |
dd foo11 |
| 23 |
dd foo22 |
| 24 |
dd foo33 |
| 25 |
|
| 26 |
%define foo33bar 999999 |
| 27 |
dd %[foo%[foo3]bar] |
| 28 |
|
| 29 |
%assign bctr 0 |
| 30 |
%macro bluttan 0 |
| 31 |
%assign bctr bctr+1 |
| 32 |
%assign bluttan%[bctr] bctr |
| 33 |
%defstr bstr bluttan%[bctr] |
| 34 |
db bluttan%[bctr] |
| 35 |
db bstr |
| 36 |
%endmacro |
| 37 |
|
| 38 |
%rep 20 |
| 39 |
bluttan |
| 40 |
%endrep |
| 41 |
%rep 20 |
| 42 |
db bluttan%[bctr] |
| 43 |
%assign bctr bctr-1 |
| 44 |
%endrep |