mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
test: add test for %pragma list options and __?LIST_OPTIONS*?__
A simple test for tweaking the list options from the source code. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
27500eee7f
commit
47f1cd8ede
1 changed files with 35 additions and 0 deletions
35
test/listing.asm
Normal file
35
test/listing.asm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
%pragma list options +t
|
||||
times 16 db '.'
|
||||
db 10
|
||||
db __?LIST_OPTIONS?__, 10
|
||||
db __?LIST_OPTIONS_DEFAULT?__, 10
|
||||
|
||||
%pragma list options *t
|
||||
times 16 db '.'
|
||||
db 10
|
||||
db __?LIST_OPTIONS?__, 10
|
||||
db __?LIST_OPTIONS_DEFAULT?__, 10
|
||||
|
||||
%pragma list options -"t" "-bd"
|
||||
times 16 db '.'
|
||||
db 10
|
||||
db __?LIST_OPTIONS?__, 10
|
||||
db __?LIST_OPTIONS_DEFAULT?__, 10
|
||||
|
||||
%pragma list options -! +__?LIST_OPTIONS_DEFAULT?__
|
||||
times 16 db '.'
|
||||
db 10
|
||||
db __?LIST_OPTIONS?__, 10
|
||||
db __?LIST_OPTIONS_DEFAULT?__, 10
|
||||
|
||||
%pragma list options +"t"
|
||||
times 16 db '.'
|
||||
db 10
|
||||
db __?LIST_OPTIONS?__, 10
|
||||
db __?LIST_OPTIONS_DEFAULT?__, 10
|
||||
|
||||
%pragma list options *!
|
||||
times 16 db '.'
|
||||
db 10
|
||||
db __?LIST_OPTIONS?__, 10
|
||||
db __?LIST_OPTIONS_DEFAULT?__, 10
|
||||
Loading…
Add table
Add a link
Reference in a new issue