nasm/test/listing.asm
H. Peter Anvin (Intel) 47f1cd8ede 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>
2026-06-28 20:35:56 -07:00

35 lines
703 B
NASM

%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